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