Compiled with -std=c++0x, version g++ (GCC) 4.3.0 20070921 (experimental), the
following program causes an ICE.

{{{
template<typename... A>
struct foo {};

template<typename A0, typename... A1>
struct bar {};

template<typename U>
struct baz;

template<template<typename...> class T, typename... U>
struct baz< T<U...> >
{};

template<template<typename, typename...> class T, typename U, typename... V>
struct baz< T<U, V...> >
{};

baz< foo<int, short> > b1;
baz< bar<int, short> > b2;
}}}


-- 
           Summary: ICE with partial specialization on vararg template
                    template parameter
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eric dot niebler at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33943

Reply via email to