[Bug c++/59005] Having designated inits in C++ with -std=c++11 does not cause any errors
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jun 8 15:17:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59005
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |mpolacek at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed by r254964:
59005.C: In function ‘int main(int, char**)’:
59005.C:7:9: warning: ISO C++ does not allow C99 designated initializers
[-Wpedantic]
[0]={1,2},
^
59005.C:8:9: warning: ISO C++ does not allow C99 designated initializers
[-Wpedantic]
[1]={3,4},
^
More information about the Gcc-bugs
mailing list