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: unassig...@gcc.gnu.org
        ReportedBy: daniel.krueg...@googlemail.com
                CC: ja...@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"

Reply via email to