public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49729] New: diagnostic cascade
@ 2011-07-13  9:24 igodard at pacbell dot net
  2011-07-13  9:36 ` [Bug c++/49729] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: igodard at pacbell dot net @ 2011-07-13  9:24 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: diagnostic cascade
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: igodard@pacbell.net


This code:

int main() {
    for(int i = 0; i < 10; ++i)
        continue);
    return 0;
    }


got me:

s3:~/ootbc/sim$ g++ foo.cc
foo.cc: In function ‘int main()’:
foo.cc:3: error: expected ‘;’ before ‘)’ token
foo.cc:3: error: expected primary-expression before ‘)’ token
foo.cc:3: error: expected ‘;’ before ‘)’ token

I got the idea the first time :-)


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

end of thread, other threads:[~2021-12-09  0:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-13  9:24 [Bug c++/49729] New: diagnostic cascade igodard at pacbell dot net
2011-07-13  9:36 ` [Bug c++/49729] " redi at gcc dot gnu.org
2021-12-09  0:56 ` pinskia at gcc dot gnu.org
2021-12-09  0:56 ` pinskia at gcc dot gnu.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).