c++/3869: Segmentation fault on specialized outer template with inner member template
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Fri Nov 1 12:39:00 GMT 2002
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
More information about the Gcc-bugs
mailing list