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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
@ 2005-03-20  2:00 ` pinskia at gcc dot gnu dot org
  2005-03-24 18:10 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-20  2:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-20 02:00 -------
With checking enabled we get an ICE:
t.cc: In function `int foo(int)':
t.cc:5: error: expected identifier before '*' token
t.cc:5: internal compiler error: tree check: expected identifier_node, have error_mark in 
declare_local_label, at cp/decl.c:2162
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

And this is a regression from 3.3.3.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-20 02:00:06
               date|                            |
            Summary|Infinite loop in diagnostic |[3.4/4.0/4.1 Regression]
                   |                            |Infinite loop in diagnostic
                   |                            |(and ice after error
                   |                            |message)
   Target Milestone|---                         |3.4.4


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


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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  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
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-24 18:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-24 18:10 -------
: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).


This started with the new parser.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia 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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  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
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:22 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
                   ` (2 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-07  9:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-07 09:33 -------
Testing a patch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |monitored


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


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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
                   ` (3 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-08 11:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-08 11:09 -------
Subject: Bug 20563

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	reichelt@gcc.gnu.org	2005-06-08 11:09:13

Modified files:
	gcc/cp         : ChangeLog parser.c pt.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/ext: label4.C 
	gcc/testsuite/g++.dg/template: ptrmem15.C 

Log message:
	PR c++/19894
	* pt.c (tsubst): Reject pointer-to-member of type void.
	
	* g++.dg/template/ptrmem15.C: New test.
	
	PR c++/20563
	* parser.c (cp_parser_label_declaration): Deal with invalid/missing
	identifiers.
	
	* g++.dg/ext/label4.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4781&r2=1.4782
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.339&r2=1.340
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/pt.c.diff?cvsroot=gcc&r1=1.1003&r2=1.1004
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5612&r2=1.5613
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/label4.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/template/ptrmem15.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
                   ` (4 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-08 11:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-08 11:26 -------
Subject: Bug 20563

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	reichelt@gcc.gnu.org	2005-06-08 11:26:06

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/ext: label4.C 

Log message:
	PR c++/20563
	* parser.c (cp_parser_label_declaration): Deal with invalid/missing
	identifiers.
	
	* g++.dg/ext/label4.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.222&r2=1.3892.2.223
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.55&r2=1.157.2.56
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.401&r2=1.3389.2.402
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/label4.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c++/20563] [4.0 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
                   ` (5 preceding siblings ...)
  2005-06-08 11:26 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-08 11:28 ` 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
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-06-08 11:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-08 11:28 -------
Fixed on mainline (will become GCC 4.1.0)
and the 3.4-branch (will become GCC 3.4.5).

Waiting for the 4.0 branch to thaw.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[3.4/4.0/4.1 Regression]    |[4.0 Regression] Infinite
                   |Infinite loop in diagnostic |loop in diagnostic (and ice
                   |(and ice after error        |after error message)
                   |message)                    |
   Target Milestone|3.4.5                       |4.0.2


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


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

* [Bug c++/20563] [4.0 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
                   ` (6 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-11 13:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-11 12:57 -------
Subject: Bug 20563

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	reichelt@gcc.gnu.org	2005-07-11 12:57:06

Modified files:
	gcc/cp         : ChangeLog parser.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/ext: label4.C 

Log message:
	PR c++/20563
	* parser.c (cp_parser_label_declaration): Deal with invalid/missing
	identifiers.
	
	* g++.dg/ext/label4.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.61&r2=1.4648.2.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.319.2.9&r2=1.319.2.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.263&r2=1.5084.2.264
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/label4.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.10.1



-- 


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


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

* [Bug c++/20563] [3.4/4.0/4.1 Regression] Infinite loop in diagnostic (and ice after error message)
  2005-03-20  1:56 [Bug c++/20563] New: Infinite loop in diagnostic giovannibajo at libero dot it
                   ` (7 preceding siblings ...)
  2005-07-11 13:01 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-11 13:20 ` reichelt at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-07-11 13:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-07-11 13:01 -------
Now also fixed on the 4.0 branch.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|3.4.0 4.0.0 4.1.0           |3.4.0 3.4.4 4.0.0 4.0.1
      Known to work|3.3.3                       |3.3.6 3.4.5 4.0.2 4.1.0
         Resolution|                            |FIXED
            Summary|[4.0 Regression] Infinite   |[3.4/4.0/4.1 Regression]
                   |loop in diagnostic (and ice |Infinite loop in diagnostic
                   |after error message)        |(and ice after error
                   |                            |message)
   Target Milestone|4.0.2                       |3.4.5


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).