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++/16297] New: [3.5] regression ICE on A::int


Mark, your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00888.html
sems to be responsible for a regression on mainline:
The compiler ICEs on the following invalid code snippet:

============================
struct A
{
    A::int foo();
};
============================

The error message is:

bug.cc:7: error: expected unqualified-id before "int"
bug.cc:7: internal compiler error: in grokdeclarator, at cp/decl.c:6435
Please submit a full bug report, [etc.]

Could you please have a look?

-- 
           Summary: [3.5] regression ICE on A::int
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,mmitchel at gcc dot gnu
                    dot org


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


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