[Bug c++/50209] New: [C++0x] Braced-init-lists are rejected as function default arguments
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Sat Aug 27 12:51:00 GMT 2011
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"
More information about the Gcc-bugs
mailing list