c++/5750: g++ segfaults when using the gcc-extention of typeof() in a template class
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Fri Nov 1 12:06:00 GMT 2002
The following reply was made to PR c++/5750; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>
Cc:
Subject: Re: c++/5750: g++ segfaults when using the gcc-extention of typeof()
in a template class
Date: Fri, 1 Nov 2002 14:01:33 -0600 (CST)
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
More information about the Gcc-prs
mailing list