public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20563] New: Infinite loop in diagnostic
@ 2005-03-20  1:56 giovannibajo at libero dot it
  2005-03-20  2:00 ` [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message) pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: giovannibajo at libero dot it @ 2005-03-20  1:56 UTC (permalink / raw)
  To: gcc-bugs

The following program:

--------------------------------
int foo(int dest)
{
  int x = 0;
   __label__ l1, l2, l3;
   __label__ *lb[] = { &&l1, &&l2, &&l3 };

   goto **lb[dest];

l1:
   x += 1;
l2:
   x += 1;
l3:
   x += 1;
   return x;
}
--------------------------------

produce an infinite loop in diagnostic when compiled with G++ 3.4.3:


label.cc:5: error: expected identifier before '*' token
label.cc:5: error: expected `,' before '*' token
label.cc:5: error: expected identifier before '*' token
label.cc:5: error: expected `,' before '*' token
label.cc:5: error: expected identifier before '*' token
label.cc:5: error: expected `,' before '*' token
label.cc:5: error: expected identifier before '*' token
label.cc:5: error: expected `,' before '*' token
label.cc:5: error: expected identifier before '*' token
label.cc:5: error: expected `,' before '*' token
label.cc:5: error: expected identifier before '*' token
label.cc:5: error: expected `,' before '*' token
label.cc:5: error: expected identifier before '*' token
[....]

-- 
           Summary: Infinite loop in diagnostic
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-07-11 13:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
2005-03-20  2:00 ` [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message) pinskia at gcc dot gnu dot org
2005-03-24 18:10 ` pinskia at gcc dot gnu dot org
2005-05-19 17:22 ` mmitchel at gcc dot gnu dot org
2005-06-07  9:33 ` reichelt at gcc dot gnu dot org
2005-06-08 11:09 ` cvs-commit at gcc dot gnu dot org
2005-06-08 11:26 ` cvs-commit at gcc dot gnu dot org
2005-06-08 11:28 ` [Bug c++/20563] [4.0 " reichelt at gcc dot gnu dot org
2005-07-11 13:01 ` cvs-commit at gcc dot gnu dot org
2005-07-11 13:20 ` [Bug c++/20563] [3.4/4.0/4.1 " reichelt 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).