[Bug c++/61122] too many initializers for NSDMI for array of unknown bound

2014-05-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61122 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic

[Bug c++/61122] too many initializers for NSDMI for array of unknown bound

2014-05-09 Thread f.heckenb...@fh-soft.de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61122 --- Comment #2 from Frank Heckenbach f.heckenb...@fh-soft.de --- If it's not allowed, it should also fail at file-scope or function-scope, shouldn't it?

[Bug c++/61122] too many initializers for NSDMI for array of unknown bound

2014-05-09 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61122 --- Comment #3 from Jonathan Wakely redi at gcc dot gnu.org --- No. At file or function scope the initializer is definitely used, and can provide the array bound. On a non-static data member it is not used until the object is constructed (and