This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5750: g++ segfaults when using the gcc-extention of typeof()in a template class
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: gcc-gnats at gcc dot gnu dot org, <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 1 Nov 2002 14:01:33 -0600 (CST)
- Subject: Re: c++/5750: g++ segfaults when using the gcc-extention of typeof()in a template class
Reduced testcase is
----------------------------------
template <class T> struct A {
static const int n = T::n;
};
template <class T> struct B {
typedef A<typeof(BOGUS)> X;
static const int m = X::n;
};
----------------------------------
May be related to c++/8007 and is probably a duplicate of 4526.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth