public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26058]  New: C++ error recovery regression
@ 2006-02-01  2:13 sabre at nondot dot org
  2006-02-01  2:18 ` [Bug c++/26058] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: sabre at nondot dot org @ 2006-02-01  2:13 UTC (permalink / raw)
  To: gcc-bugs

GCC 3.3 emitted one "parse error before `{' token" error on this code, GCC 4
emits one error for *every* function defined after the error.  It would be nice
to only say "error: a function-definition is not allowed here before '{' token"
once, and perhaps pop up to global scope so that the rest of the file is parsed
in a sane way.

---
int t1() {
  { // unclosed brace
}
int t2() {}
int t3() {}
int t4() {}
int t5() {}
int t6() {}
int t7() {}
int t8() {}
--- 

-Chris


-- 
           Summary: C++ error recovery regression
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sabre at nondot dot org


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-05-31 23:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-01  2:13 [Bug c++/26058] New: C++ error recovery regression sabre at nondot dot org
2006-02-01  2:18 ` [Bug c++/26058] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-01  5:13 ` gdr at gcc dot gnu dot org
2006-03-01  5:14 ` pinskia at gcc dot gnu dot org
2006-03-11  3:20 ` mmitchel at gcc dot gnu dot org
2006-05-31  4:54 ` [Bug c++/26058] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-05-31 19:14 ` sabre at nondot dot org
2006-05-31 19:14 ` sabre at nondot dot org
2006-05-31 19:54 ` mmitchel at gcc dot gnu dot org
2006-05-31 22:17 ` sabre at nondot dot org
2006-05-31 22:56 ` mark at codesourcery dot com
2006-05-31 23:00 ` sabre at nondot 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).