This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15967] [3.4/3.5 regression] ICE on ambiguous operator new in class hierarchy


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]