This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/25137] Warning "missing braces around initializer" causing problems with tr1::array



------- Comment #7 from gdr at integrable-solutions dot net  2005-11-28 18:46 -------
Subject: Re:  Warning "missing braces around initializer" causing problems with
tr1::array

"chris at bubblescope dot net" <gcc-bugzilla@gcc.gnu.org> writes:

| Actually, is a report really approriate? Writing array<int,3> = {1,2,3} is
| perfectly valid C++, just warned about with -Wmissing-braces

You're absolutely right!  I forgot 8.5.1/11!

Can't we have simple, general rules, without list of special cases? :-(

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25137


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]