Lines Matching full:cannot

40 const [[]] int between_attr_2 = 0; // expected-error {{an attribute list cannot appear here}}
45 int & [[noreturn]] ref_attr_3 = after_attr; // expected-error {{'noreturn' attribute cannot be appl…
70 attr_after_class_name_decl [[]] [[]]; // expected-error {{an attribute list cannot appear here}}
73 …attr_after_class_name_definition [[]] [[]] [[]]{}; // expected-error {{an attribute list cannot ap…
82 alignas(float) [[]] final // expected-error {{an attribute list cannot appear here}}
83 …alignas(float) [[]] [[]] alignas(float): base{}; // expected-error {{an attribute list cannot appe…
86 [[]] [[]] alignas(16) final // expected-error {{an attribute list cannot appear here}}
87 [[]] [[]] alignas(16) [[]]{}; // expected-error {{an attribute list cannot appear here}}
90 …ier}} expected-error {{expected ']'}} expected-error {{an attribute list cannot appear here}} expe…
91 …xpected ',' or ']' in lambda capture list}} expected-error {{an attribute list cannot appear here}}
94 [[]] struct no_init_declarators; // expected-error {{an attribute list cannot appear here}}
95 …[]] struct no_init_declarators_template; // expected-error {{an attribute list cannot appear here}}
98 [[]] struct no_init_declarators; // expected-error {{an attribute list cannot appear here}}
113 int (paren_attr) [[]]; // expected-error {{an attribute list cannot appear here}}
114 unsigned [[]] int attr_in_decl_spec; // expected-error {{an attribute list cannot appear here}}
115 unsigned [[]] int [[]] const double_decl_spec = 0; // expected-error 2{{an attribute list cannot ap…
119 extern "C++" [[]] { } // expected-error {{an attribute list cannot appear here}}
120 …ypename T> void before_template_attr (); // expected-error {{an attribute list cannot appear here}}
121 [[]] namespace ns { int i; } // expected-error {{an attribute list cannot appear here}} expected-no…
122 [[]] static_assert(true, ""); //expected-error {{an attribute list cannot appear here}}
123 [[]] asm(""); // expected-error {{an attribute list cannot appear here}}
125 [[]] using ns::i; // expected-error {{an attribute list cannot appear here}}
130 using [[]] alignas(4) [[]] ns::i; // expected-error {{an attribute list cannot appear here}}
131 using [[]] alignas(4) [[]] foobar = int; // expected-error {{an attribute list cannot appear here}}…
143 [[ab]ab] ns::i); // expected-error {{an attribute list cannot appear here}}
148 [[]] using T = int; // expected-error {{an attribute list cannot appear here}}
151 using ns::i [[]]; // expected-error {{an attribute list cannot appear here}}
152 using [[]] ns::i; // expected-error {{an attribute list cannot appear here}}
158 auto trailing() -> [[]] const int; // expected-error {{an attribute list cannot appear here}}
159 auto trailing() -> const [[]] int; // expected-error {{an attribute list cannot appear here}}
169 struct [[]] N::S s; // expected-error {{an attribute list cannot appear here}}
170 struct [[]] Template<int> t; // expected-error {{an attribute list cannot appear here}}
171 struct [[]] ::template Template<int> u; // expected-error {{an attribute list cannot appear here}}
172 template struct [[]] Template<char>; // expected-error {{an attribute list cannot appear here}}
182 enum [[]] E1 e; // expected-error {{an attribute list cannot appear here}}
183 enum [[]] class E4 { }; // expected-error {{an attribute list cannot appear here}}
187 friend int f [[]] (); // expected-FIXME{{an attribute list cannot appear here}}
188 friend int f1 [[noreturn]] (); //expected-error{{an attribute list cannot appear here}}
190 [[]] friend int g(); // expected-error{{an attribute list cannot appear here}}
193 [[]] friend int f3(), f4(), f5(); // expected-error{{an attribute list cannot appear here}}
194 …f7 [[noreturn]] (), f8 [[noreturn]] (); // expected-error3 {{an attribute list cannot appear here}}
195 friend class [[]] C; // expected-error{{an attribute list cannot appear here}}
196 [[]] friend class D; // expected-error{{an attribute list cannot appear here}}
197 [[]] friend int; // expected-error{{an attribute list cannot appear here}}
200 template void tmpl [[]] (int); // expected-FIXME {{an attribute list cannot appear here}}
201 template [[]] void tmpl(char); // expected-error {{an attribute list cannot appear here}}
229 } [[]] catch (...) { // expected-error {{an attribute list cannot appear here}}
243 …void bar [[noreturn...]] (); // expected-error {{attribute 'noreturn' cannot be used as an attribu…
269 for ([[]] x = 0; ; ) {} // expected-error {{an attribute list cannot appear here}}
270 for (; [[]] x < 5; ) {} // expected-error {{an attribute list cannot appear here}}
273 while ([[]] true) { // expected-error {{an attribute list cannot appear here}}
276 } while ([[]] false); // expected-error {{an attribute list cannot appear here}}
295 unsigned [[gnu::used]] static int [[gnu::unused]] v1; // expected-error {{'unused' attribute cannot
296 expected-error {{an attribute list cannot appear here}}
297 …unsigned long [[gnu::unused]] v2; // expected-error {{'unused' attribute cannot be applied to type…
298 expected-error {{an attribute list cannot appear here}}
299 …ies_dependency]] x); // expected-error 2{{'carries_dependency' attribute cannot be applied to type…