[Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse,

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 19 22:41:00 GMT 2012


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: unassigned@gcc.gnu.org
        ReportedBy: pinskia@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;
};



More information about the Gcc-bugs mailing list