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/44514] New: bad error recovery with forgotten ; after class definition


Testcase:

template<class T>
class a {}
  class temp {};
a<temp> b;
struct b {
}

gcc-4.6:

clang-2.C:3:15: error: multiple types in one declaration
clang-2.C:4:7: error: non-template type ?a? used as a template
clang-2.C:4:10: error: invalid type in declaration before ?;? token
clang-2.C:6:1: error: expected unqualified-id at end of input

clang:

 t.cc:2:11: error: expected ';' after class
  class a {}
            ^
            ;
  t.cc:6:2: error: expected ';' after struct
  }
   ^
   ;


-- 
           Summary: bad error recovery with forgotten ; after class
                    definition
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: manu at gcc dot gnu dot org


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


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