This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50209] New: [C++0x] Braced-init-lists are rejected as function default arguments
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 27 Aug 2011 10:16:13 +0000
- Subject: [Bug c++/50209] New: [C++0x] Braced-init-lists are rejected as function default arguments
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50209
Bug #: 50209
Summary: [C++0x] Braced-init-lists are rejected as function
default arguments
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: daniel.kruegler@googlemail.com
CC: jason@redhat.com
Build: 4.7.0 20110813 (experimental)
This is a placeholder entry to remind for adapting the compiler to accept
braced-init-lists as function default arguments, as decided for in
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#994
gcc 4.7.0 20110813 (experimental) in C++0x mode rejects the following code:
---------
struct S {
S(int = {}); // #2
};
---------
"2|error: expected primary-expression before '{' token"