This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53965] Member class initialization doesn't work with unordered_set
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 15 Jul 2012 00:29:38 +0000
- Subject: [Bug c++/53965] Member class initialization doesn't work with unordered_set
- Auto-submitted: auto-generated
- References: <bug-53965-4@http.gcc.gnu.org/bugzilla/>
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 );