This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as templateparameter
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 31 Oct 2002 22:06:03 -0000
- Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as templateparameter
- Reply-to: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
The following reply was made to PR c++/4526; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: c++/4526: ICE in g++ 3.0.1 when using typeof() as template
parameter
Date: Thu, 31 Oct 2002 16:04:21 -0600 (CST)
This is a reduced testcase:
----------------------------------
template<class T> struct A {
typedef typename T::type type;
};
template<class T> struct B {
void foo() {
typedef A<typeof(BOGUS)> A;
typename A::type i;
}
};
template class B<int>;
----------------------------------
In the original report, BOGUS was actually something valid, but I believe
that the failure is the same:
tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/c++ -c x.cc
x.cc: In instantiation of `A<__typeof (BOGUS)>':
x.cc:8: instantiated from here
x.cc:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth