This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15967] [3.4/3.5 regression] ICE on ambiguous operator new in class hierarchy
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2004 23:22:50 -0000
- Subject: [Bug c++/15967] [3.4/3.5 regression] ICE on ambiguous operator new in class hierarchy
- References: <20040612225420.15967.wwieser@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-06-12 23:22 -------
Confirmed. The code is invalid, but the ICE is a regression. Up to
3.3.x we got this:
g/x> /home/bangerth/bin/gcc-3.3.4-pre/bin/c++ -c x.cc
x.cc: In function `int crash()':
x.cc:10: error: request for member `operator new' is ambiguous
x.cc:4: error: candidates are: static void* B::operator new(unsigned int)
x.cc:3: error: static void* A::operator new(unsigned int)
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |3.4.0 3.5.0
Known to work| |3.3.4
Last reconfirmed|0000-00-00 00:00:00 |2004-06-12 23:22:48
date| |
Summary|ICE: Segmentation fault |[3.4/3.5 regression] ICE on
| |ambiguous operator new in
| |class hierarchy
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15967