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

             Bug #: 51908
           Summary: ICE in cp_parser_abort_tentative_parse,
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: pins...@gcc.gnu.org


Testcase:
struct foo
{
    template <typename Ret, typename... Args>
    operator decltype(static_cast<Ret (*)(Args...)>(0)) () const;
};
--- CUT ---
Another testcase:
struct foo
{
    template <typename Ret, typename... Args>
    operator decltype(static_cast<Ret (*)(Args...)>(nullptr)) () const;
};

Reply via email to