This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse,
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jan 2012 22:29:24 +0000
- Subject: [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse,
- Auto-submitted: auto-generated
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;
};