[Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)

reichelt@gcc.gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 2 12:37:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt@gcc.gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code
            Summary|ICE: const myclass &x = *x; |[3.3/3.4 regression] ICE:
                   |(when operator*() defined)  |const myclass &x = *x; (when
                   |                            |operator*() defined)


------- Additional Comments From reichelt@gcc.gnu.org  2003-06-02 12:37 -------
I think the code is well-formed (although a warning would be nice).
The code actually compiles with gcc 3.0.x, but ICE's with gcc 2.95.x
and since 3.1.
Thus, we have a regression.




------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list