public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44514] New: bad error recovery with forgotten ; after class definition
@ 2010-06-13 12:40 manu at gcc dot gnu dot org
0 siblings, 0 replies; only message in thread
From: manu at gcc dot gnu dot org @ 2010-06-13 12:40 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 946 bytes --]
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-13 12:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-13 12:40 [Bug c/44514] New: bad error recovery with forgotten ; after class definition manu at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).