This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]