c++/5750: g++ segfaults when using the gcc-extention of typeof() in a template class

Wolfgang Bangerth bangerth@ticam.utexas.edu
Fri Nov 1 11:58:00 GMT 2002


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-bugs mailing list