This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25137] Warning "missing braces around initializer" causing problems with tr1::array
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Nov 2005 18:46:05 -0000
- Subject: [Bug c++/25137] Warning "missing braces around initializer" causing problems with tr1::array
- References: <bug-25137-9525@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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