[Bug c++/60873] C++11: template class with const member and default ctor should fail to compile?
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 17 13:55:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60873
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
ICC is wrong to reject the code, the defaulted default constructor should be
defined as deleted according to [class.ctor]/5, so there should only be a
diagnostic if you try to use that default constructor.
More information about the Gcc-bugs
mailing list