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++/12184] New: [3.3/3.4 regression] ICE with trying to convert an incomplete type


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

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

           Summary: [3.3/3.4 regression] ICE with trying to convert an
                    incomplete type
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org

While playing with 12183, I found this:
---------------------------
class C; 
class D;
bool mm(D); 
 
void g(C& f) { 
  mm(f);
}
--------------------------------

This ICEs 3.3 and 3.4:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ x.cc
x.cc: In function `void g(C&)':
x.cc:6: error: parameter type of called function is incomplete
x.cc:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

It didn't ICE with 2.95, so is a regression (although ICE after
error).

W.


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