-
Bug
-
Resolution: Unresolved
-
Low
-
Code Generation Tools
-
CODEGEN-4246
-
armcl allows illegal attribute in friend declarations. The test asserts that if an attribute list is specified in a friend declaration, then the declaration must also be a definition. (C++14 7.6.1;4c)
All of the cases involved in this test involve a [[deprecated]] attribute specified after a class or union keyword in a friend declaration. For example,
struct S
{ template <class> friend union [[deprecated]] U; };
The armcl compiler does not generate an error for these cases even though they are in violation of the standard