This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50209] New: [C++0x] Braced-init-lists are rejected as function default arguments


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]