Lines Matching full:field
7 …td=c++20 %s -verify=cxx20,expected,wmissing,wmissing-designated -Wmissing-field-initializers -Wno-…
8 …=c++20 %s -verify=cxx20,expected,wmissing -Wmissing-field-initializers -Wno-missing-designated-fie…
38 .y = 1, // reorder-note {{previous initialization for field 'y' is here}}
39 …er-error {{ISO C++ requires field designators to be specified in declaration order; field 'y' will…
54 }; // wmissing-designated-warning {{missing field 'y' initializer}}
58 }; // wmissing-designated-warning {{missing field 'x' initializer}}
60 // wmissing-warning@-1 {{missing field 'y' initializer}}
64 // wmissing-warning@-1 {{missing field 'y' initializer}}
70 …{overrides prior initialization}} // reorder-note {{previous initialization for field 'y' is here}}
77 struct Foo foo0 = { 1 }; // wmissing-warning {{missing field 'b' initializer}}
78 struct Foo foo1 = { .a = 1 }; // wmissing-designated-warning {{missing field 'b' initializer}}
79 struct Foo foo2 = { .b = 1 }; // wmissing-designated-warning {{missing field 'a' initializer}}
90 derived d = {.x = 1, .y = 2}; // expected-error {{'x' does not refer to any field}}
110 // candidate where a field initializer would be overridden.
216 // reorder-note@-2 {{previous initialization for field 'z' is here}}
217 .y=1, // reorder-error {{field 'z' will be initialized after field 'y'}}
218 // reorder-note@-1 {{previous initialization for field 'y' is here}}
219 .x=2}, // reorder-error {{field 'y' will be initialized after field 'x'}}
220 {.b=3, // reorder-note {{previous initialization for field 'b' is here}}
221 .a=4}, // reorder-error {{field 'b' will be initialized after field 'a'}}
222 .e = 1, // reorder-note {{previous initialization for field 'e' is here}}
224 .d = 1, // reorder-error {{field 'e' will be initialized after field 'd'}}
225 // reorder-note@-1 {{previous initialization for field 'd' is here}}
226 ….c = 1, // reorder-error {{field 'd' will be initialized after field 'c'}} // reorder-note {{previ…
227 ….b = 1, // reorder-error {{field 'c' will be initialized after field 'b'}} // reorder-note {{previ…
228 .a = 1, // reorder-error {{field 'b' will be initialized after field 'a'}}
243 …error-re {{ISO C++ requires field designators to be specified in declaration order; field 'x' will… in foo()
244 // reorder-note@-1 {{previous initialization for field 'x' is here}} in foo()
246 …requires field designators to be specified in declaration order; field 'GH63759::C::(anonymous uni… in foo()
247 …// reorder-note-re@-1 {{previous initialization for field 'GH63759::C::(anonymous union at {{.*}})… in foo()