comparison gcc/testsuite/g++.dg/parse/pr43765.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
8 }; 8 };
9 const char *temp[] = {"607", "612", 0}; 9 const char *temp[] = {"607", "612", 0};
10 10
11 SomeType vals[] = 11 SomeType vals[] =
12 { 12 {
13 { 0, values : temp, }, 13 { 0, values : temp, }, // { dg-error "either all initializer clauses should be designated or none of them should be" "" { target c++2a } }
14 0 14 0
15 }; // { dg-error "GNU-style designated initializer for an array|cannot convert" } 15 }; // { dg-error "GNU-style designated initializer for an array|cannot convert" }
16 // (note the error above is on the wrong line) 16 // (note the error above is on the wrong line)
17 17 // { dg-error "initialization of flexible array member in a nested context" "" { target *-*-* } .-2 }