[Bug c++/26698] [4.0/4.1/4.2/4.3 Regression] g++ accepts const-incorrect code due to conversion function
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Fri Sep 7 00:34:00 GMT 2007
------- Comment #7 from pcarlini at suse dot de 2007-09-07 00:34 -------
Now in mainline things are better:
26698.C: In member function ÂX::operator X&() constÂ:
26698.C:25: error: invalid initialization of reference of type ÂX&Â from
expression of type Âconst XÂ
I'm not sure whether an error at line 28 is mandatory together with the above
one.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26698
More information about the Gcc-bugs
mailing list