This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313
- From: "vanyacpp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 May 2014 10:23:22 +0000
- Subject: [Bug c++/61341] New: internal compiler error: in tsubst, at cp/pt.c:11313
- Auto-submitted: auto-generated
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;
}