Compile with -std=c++0x

template<typename Fun, typename... Args>
struct call;

template<typename Fun, typename Arg0>
struct call
{
    template<typename Sig>
    struct result;

    template<typename X, typename Y>
    struct result<X(Y)>
    {
        typedef X type;
    };
};


-- 
           Summary: ICE on invalid code (with variadic templates): tree
                    check: expected class ‘type’, have ‘exceptional’
                    (error_mark) in template_class_depth
           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=34314

Reply via email to