This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]