This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18677] [3.4/4.0 regression] ICE: Segmentation fault (program cc1plus)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2004 22:03:06 -0000
- Subject: [Bug c++/18677] [3.4/4.0 regression] ICE: Segmentation fault (program cc1plus)
- References: <20041125211836.18677.debian-gcc@lists.debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-25 22:03 -------
: Search converges between 2004-06-27-trunk (#473) and 2004-06-28-trunk (#474).
: Search converges between 2004-06-28-3.4 (#11) and 2004-06-29-3.4 (#12).
With the comeau online C++ compiler I get the following error:
"ComeauTest.c", line 8: error: "DisplayString::DisplayString(DisplayString &)",
required for copy that was eliminated, is not callable because
reference parameter cannot be bound to rvalue
DisplayString a = "%g";
^
which is correct.
and the reason why this is not valid code is because the "copy" construtor requires a lvalue and we
don't have a lvalue here but a rvalue.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work|3.3.5 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18677