[Bug c++/57724] wrong error: returning a value from a constructor
fanael4 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 26 11:31:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57724
Fanael <fanael4 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fanael4 at gmail dot com
--- Comment #1 from Fanael <fanael4 at gmail dot com> ---
12.1/12 (C++03) and 12.1/9 (C++11) state:
> A return statement in the body of a constructor shall not specify a return value.
It's a bug in Clang, not in GCC.
More information about the Gcc-bugs
mailing list