Lines Matching refs:here
40 const [[]] int between_attr_2 = 0; // expected-error {{an attribute list cannot appear here}}
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 appear here}}
82 alignas(float) [[]] final // expected-error {{an attribute list cannot appear here}}
83 alignas(float) [[]] [[]] alignas(float): base{}; // expected-error {{an attribute list cannot appear here}}
86 [[]] [[]] alignas(16) final // expected-error {{an attribute list cannot appear here}}
87 [[]] [[]] alignas(16) [[]]{}; // expected-error {{an attribute list cannot appear here}}
90 [[]] struct no_init_declarators; // expected-error {{an attribute list cannot appear here}}
91 template<typename> [[]] struct no_init_declarators_template; // expected-error {{an attribute list cannot appear here}}
94 [[]] struct no_init_declarators; // expected-error {{an attribute list cannot appear here}}
109 int (paren_attr) [[]]; // expected-error {{an attribute list cannot appear here}}
110 unsigned [[]] int attr_in_decl_spec; // expected-error {{an attribute list cannot appear here}}
111 unsigned [[]] int [[]] const double_decl_spec = 0; // expected-error 2{{an attribute list cannot appear here}}
115 extern "C++" [[]] { } // expected-error {{an attribute list cannot appear here}}
116 [[]] template <typename T> void before_template_attr (); // expected-error {{an attribute list cannot appear here}}
117 [[]] namespace ns { int i; } // expected-error {{an attribute list cannot appear here}} expected-note {{declared here}}
118 [[]] static_assert(true, ""); //expected-error {{an attribute list cannot appear here}}
119 [[]] asm(""); // expected-error {{an attribute list cannot appear here}}
121 [[]] using ns::i; // expected-error {{an attribute list cannot appear here}}
125 using [[]] alignas(4) [[]] ns::i; // expected-error {{an attribute list cannot appear here}}
126 using [[]] alignas(4) [[]] foobar = int; // expected-error {{an attribute list cannot appear here}} expected-error {{'alignas' attribute only applies to}}
138 [[ab]ab] ns::i); // expected-error {{an attribute list cannot appear here}}
143 [[]] using T = int; // expected-error {{an attribute list cannot appear here}}
146 using ns::i [[]]; // expected-error {{an attribute list cannot appear here}}
147 using [[]] ns::i; // expected-error {{an attribute list cannot appear here}}
153 auto trailing() -> [[]] const int; // expected-error {{an attribute list cannot appear here}}
154 auto trailing() -> const [[]] int; // expected-error {{an attribute list cannot appear here}}
164 struct [[]] N::S s; // expected-error {{an attribute list cannot appear here}}
165 struct [[]] Template<int> t; // expected-error {{an attribute list cannot appear here}}
166 struct [[]] ::template Template<int> u; // expected-error {{an attribute list cannot appear here}}
167 template struct [[]] Template<char>; // expected-error {{an attribute list cannot appear here}}
175 k_123 [[]] = 123 // expected-error {{an attribute list cannot appear here}}
177 enum [[]] E1 e; // expected-error {{an attribute list cannot appear here}}
178 enum [[]] class E4 { }; // expected-error {{an attribute list cannot appear here}}
182 friend int f [[]] (); // expected-FIXME{{an attribute list cannot appear here}}
183 friend int f1 [[noreturn]] (); //expected-error{{an attribute list cannot appear here}}
185 [[]] friend int g(); // expected-error{{an attribute list cannot appear here}}
188 [[]] friend int f3(), f4(), f5(); // expected-error{{an attribute list cannot appear here}}
189 friend int f6 [[noreturn]] (), f7 [[noreturn]] (), f8 [[noreturn]] (); // expected-error3 {{an attribute list cannot appear here}}
190 friend class [[]] C; // expected-error{{an attribute list cannot appear here}}
191 [[]] friend class D; // expected-error{{an attribute list cannot appear here}}
192 [[]] friend int; // expected-error{{an attribute list cannot appear here}}
195 template void tmpl [[]] (int); // expected-FIXME {{an attribute list cannot appear here}}
196 template [[]] void tmpl(char); // expected-error {{an attribute list cannot appear here}}
224 } [[]] catch (...) { // expected-error {{an attribute list cannot appear here}}
264 for ([[]] x = 0; ; ) {} // expected-error {{an attribute list cannot appear here}}
265 for (; [[]] x < 5; ) {} // expected-error {{an attribute list cannot appear here}}
268 while ([[]] true) { // expected-error {{an attribute list cannot appear here}}
271 } while ([[]] false); // expected-error {{an attribute list cannot appear here}}
290 expected-error {{an attribute list cannot appear here}}
292 expected-error {{an attribute list cannot appear here}}