c++/9868: [3.3/3.4 regression] ICE in c_expand_expr when qualifying member variable
Michael Matz
matz@suse.de
Thu Feb 27 15:59:00 GMT 2003
Hi Wolfang,
On 27 Feb 2003 bangerth@dealii.org wrote:
> 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
> 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.
This is exactly the same error as c++/9524.
Ciao,
Michael.
More information about the Gcc-bugs
mailing list