[Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313
vanyacpp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed May 28 10:23:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61341
Bug ID: 61341
Summary: internal compiler error: in tsubst, at cp/pt.c:11313
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vanyacpp at gmail dot com
GCC 4.8.2
template<typename ...T> /* 1 */
struct X
{
};
template<typename T>
struct X<X<T>, X<T> > /* 2 */
{
T i;
};
template<typename ...T>
struct X<X<T, T...>...> /* 3 */
{
const int static value = sizeof...(T);
};
template<int>
struct Y
{
};
template<>
struct Y<2>
{
const static int value;
};
int main(int ARGC, char *ARGV[])
{
//X<int, int> xii; // 1
//xii.i; // error
//X<X<int>, X<int> > xxixi; // 2
//xxixi.i; // ok
Y<X<X<int, int, double>, X<double, int, double> >::value>::value;
}
More information about the Gcc-bugs
mailing list