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++/3869: Segmentation fault on specialized outer template withinner member template


This is a reduced testcase:
---------------------------------------
template <int> struct Outer {
   template<typename> struct Inner {
      typedef int Result;
   };
};

template<>     struct Outer<0> {
   template<typename> struct Inner {
      typedef int Result;
   };
};

template<int flag> struct Select {
   typedef typename Outer<flag>::Inner<int>::Result Result;
};

typedef Select<1>::Result Int;
--------------------------------------

It fails with a segfault.

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]