c++/3869: Segmentation fault on specialized outer template with inner member template
Wolfgang Bangerth
bangerth@ticam.utexas.edu
Fri Nov 1 12:46:00 GMT 2002
The following reply was made to PR c++/3869; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Cc:
Subject: Re: c++/3869: Segmentation fault on specialized outer template with
inner member template
Date: Fri, 1 Nov 2002 14:41:49 -0600 (CST)
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-prs
mailing list