This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3869: Segmentation fault on specialized outer template withinner member template
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: gcc-bugs at gcc dot gnu dot org, <gcc-gnats at gcc dot gnu dot org>
- Date: Fri, 1 Nov 2002 14:41:49 -0600 (CST)
- Subject: 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