This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2003 12:37:10 -0000
- Subject: [Bug c++/11041] [3.3/3.4 regression] ICE: const myclass &x = *x; (when operator*() defined)
- References: <20030531022537.11041.bisqwit@iki.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.