[Bug c++/40895] New: ICE in tsubst, at cp/pt.c:9687 with variadic templates

luca dot barbieri at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 28 20:03:00 GMT 2009


With G++ 4.3.3 and 4.4.0 from Ubuntu Jaunty, I get:
ice.cpp: In instantiation of ‘s<0>’:
ice.cpp:19:   instantiated from here
ice.cpp:14: internal compiler error: in tsubst, at cp/pt.c:9687

from this test program:
int foo(int x, ...);

template<int x>
int bar()
{
        return 0;
}

template<int u>
struct s
{
        template<typename... _T>
        static inline void
        f(typeof(foo(bar<_T>()...)) a)
        {
        }
};

s<0> g;


-- 
           Summary: ICE in tsubst, at cp/pt.c:9687 with variadic templates
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: luca dot barbieri at gmail dot com


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



More information about the Gcc-bugs mailing list