This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9868: [3.3/3.4 regression] ICE in c_expand_expr when qualifying member variable
- From: bangerth at dealii dot org
- To: china at thewrittenword dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 27 Feb 2003 15:30:24 -0000
- Subject: Re: c++/9868: [3.3/3.4 regression] ICE in c_expand_expr when qualifying member variable
- Reply-to: bangerth at dealii dot org, china at thewrittenword dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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