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++/53965] Member class initialization doesn't work with unordered_set


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53965

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-15 00:29:38 UTC ---
The code is not valid, in-class initializers must use a
"brace-or-equals-initializer" meaning:

  A a{ init };

or:

  A a = init;

not:

  A a( init );


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