public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36943] New: Use of nested C++0x initializer list for non-aggregate rejected
@ 2008-07-25 23:33 gcc-bugzilla at contacts dot eelis dot net
2008-07-27 10:54 ` [Bug c++/36943] [c++0x] " paolo dot carlini at oracle dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: gcc-bugzilla at contacts dot eelis dot net @ 2008-07-25 23:33 UTC (permalink / raw)
To: gcc-bugs
C++0x-style initializer list support was recently added, but the following
valid code is rejected:
struct p { p(int, int); };
p a[] = { { 3, 2 } };
With -std=c++0x, the second line results in:
error: braces around scalar initializer for type 'p'
--
Summary: Use of nested C++0x initializer list for non-aggregate
rejected
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gcc-bugzilla at contacts dot eelis dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36943
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/36943] [c++0x] Use of nested C++0x initializer list for non-aggregate rejected
2008-07-25 23:33 [Bug c++/36943] New: Use of nested C++0x initializer list for non-aggregate rejected gcc-bugzilla at contacts dot eelis dot net
@ 2008-07-27 10:54 ` paolo dot carlini at oracle dot com
2008-07-27 18:29 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-07-27 10:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2008-07-27 10:53 -------
Jason, can you have a look?
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Summary|Use of nested C++0x |[c++0x] Use of nested C++0x
|initializer list for non- |initializer list for non-
|aggregate rejected |aggregate rejected
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36943
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/36943] [c++0x] Use of nested C++0x initializer list for non-aggregate rejected
2008-07-25 23:33 [Bug c++/36943] New: Use of nested C++0x initializer list for non-aggregate rejected gcc-bugzilla at contacts dot eelis dot net
2008-07-27 10:54 ` [Bug c++/36943] [c++0x] " paolo dot carlini at oracle dot com
@ 2008-07-27 18:29 ` jason at gcc dot gnu dot org
2008-07-29 0:07 ` jason at gcc dot gnu dot org
2008-07-29 0:08 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-07-27 18:29 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-07-27 18:28:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36943
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/36943] [c++0x] Use of nested C++0x initializer list for non-aggregate rejected
2008-07-25 23:33 [Bug c++/36943] New: Use of nested C++0x initializer list for non-aggregate rejected gcc-bugzilla at contacts dot eelis dot net
2008-07-27 10:54 ` [Bug c++/36943] [c++0x] " paolo dot carlini at oracle dot com
2008-07-27 18:29 ` jason at gcc dot gnu dot org
@ 2008-07-29 0:07 ` jason at gcc dot gnu dot org
2008-07-29 0:08 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-07-29 0:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2008-07-29 00:06 -------
Subject: Bug 36943
Author: jason
Date: Tue Jul 29 00:06:08 2008
New Revision: 138221
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138221
Log:
PR c++/36943
* decl.c (reshape_init_r): Allow C++0x initializer lists.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/g++.dg/cpp0x/initlist1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36943
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/36943] [c++0x] Use of nested C++0x initializer list for non-aggregate rejected
2008-07-25 23:33 [Bug c++/36943] New: Use of nested C++0x initializer list for non-aggregate rejected gcc-bugzilla at contacts dot eelis dot net
` (2 preceding siblings ...)
2008-07-29 0:07 ` jason at gcc dot gnu dot org
@ 2008-07-29 0:08 ` jason at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-07-29 0:08 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2008-07-29 00:07 -------
fixed, thanks.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36943
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-07-29 0:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-25 23:33 [Bug c++/36943] New: Use of nested C++0x initializer list for non-aggregate rejected gcc-bugzilla at contacts dot eelis dot net
2008-07-27 10:54 ` [Bug c++/36943] [c++0x] " paolo dot carlini at oracle dot com
2008-07-27 18:29 ` jason at gcc dot gnu dot org
2008-07-29 0:07 ` jason at gcc dot gnu dot org
2008-07-29 0:08 ` jason at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).