c++/9868: [3.3/3.4 regression] ICE in c_expand_expr when qualifying member variable

bangerth@dealii.org bangerth@dealii.org
Thu Feb 27 15:30:00 GMT 2003


Old Synopsis: ICE building LyX 1.3.0 with Qt frontend on HP-UX 11i with GCC 3.3 prerelease
New Synopsis: [3.3/3.4 regression] ICE in c_expand_expr when qualifying member variable

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Feb 27 15:30:24 2003
State-Changed-Why:
    This is an extract:
    ---------------------------
    template <typename T> struct D {
        void (*p)();
    
        void clear() { D::p(); }
    };
    template class D<bool>;
    --------------------------
    D::p was previously in a base class, which is why it is
    qualified with Class::. The code above crashes 3.3 and 3.4:
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc: In member function `void D<T>::clear() [with T = bool]':
    x.cc:6:   instantiated from here
    x.cc:4: internal compiler error: in c_expand_expr, at c-common.c:4339
    
    It worked with 3.2.2, though, so it's a regression.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9868



More information about the Gcc-bugs mailing list