public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode
@ 2003-08-20 19:29 falk at debian dot org
  2003-08-20 19:34 ` [Bug c/11995] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: falk at debian dot org @ 2003-08-20 19:29 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Error recovery problem after invalid labelled
                    declaration in c99 mode
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: error-recovery
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org

falk@juist:/tmp% cat test.c
void f ()
{
 l: int;
}

falk@juist:/tmp% gcc -v -std=c99 -c test.c 
Reading specs from
/usr/local/stow/gcc-2003.08.19/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/specs
Configured with: ../configure --disable-nls --enable-languages=c++
Thread model: posix
gcc version 3.4 20030819 (experimental)
 /usr/local/stow/gcc-2003.08.19/bin/../libexec/gcc/alphaev68-unknown-linux-gnu/3.4/cc1 -quiet -v -iprefix /usr/local/stow/gcc-2003.08.19/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/ test.c -quiet -dumpbase test.c -mcpu=ev67 -auxbase test -std=c99 -version -o /tmp/ccfMHVFe.s
ignoring nonexistent directory
"/usr/local/stow/gcc-2003.08.19/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/../../../../alphaev68-unknown-linux-gnu/include"
ignoring nonexistent directory "NONE/include"
ignoring duplicate directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.4/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/alphaev68-unknown-linux-gnu/3.4/../../../../alphaev68-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/stow/gcc-2003.08.19/bin/../lib/gcc/alphaev68-unknown-linux-gnu/3.4/include
 /usr/local/include
 /usr/include
End of search list.
GNU C version 3.4 20030819 (experimental) (alphaev68-unknown-linux-gnu)
        compiled by GNU C version 3.4 20030819 (experimental).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64064
test.c: In function `f':

test.c:3: error: syntax error before "int"
test.c:4: internal compiler error: tree check: expected block, have error_mark
in finish_function, at c-decl.c:6089
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c/11995] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
@ 2003-08-20 19:34 ` pinskia at gcc dot gnu dot org
  2003-08-23  1:24 ` dhazeghi at yahoo dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-20 19:34 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-20 19:34:54
               date|                            |


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-20 19:34 -------
I can confirm this on the mainline (20030820).  If checking is turned off we get a stack overflow.


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

* [Bug c/11995] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
  2003-08-20 19:34 ` [Bug c/11995] " pinskia at gcc dot gnu dot org
@ 2003-08-23  1:24 ` dhazeghi at yahoo dot com
  2003-08-23 14:26 ` [Bug c/11995] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-23  1:24 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi at yahoo dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4                         |---


------- Additional Comments From dhazeghi at yahoo dot com  2003-08-23 01:24 -------
Does it ICE on the branch too?


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

* [Bug c/11995] [3.3/3.4 Regression] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
  2003-08-20 19:34 ` [Bug c/11995] " pinskia at gcc dot gnu dot org
  2003-08-23  1:24 ` dhazeghi at yahoo dot com
@ 2003-08-23 14:26 ` pinskia at gcc dot gnu dot org
  2003-09-05  5:30 ` mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 14:26 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Error recovery problem after|[3.3/3.4 Regression] Error
                   |invalid labelled declaration|recovery problem after
                   |in c99 mode                 |invalid labelled declaration
                   |                            |in c99 mode
   Target Milestone|---                         |3.3.2


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-23 14:26 -------
>From Phil's regression hunter: Search converges between 2001-06-03-trunk (#22) and 
2001-06-10-trunk (#23).


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

* [Bug c/11995] [3.3/3.4 Regression] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
                   ` (2 preceding siblings ...)
  2003-08-23 14:26 ` [Bug c/11995] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2003-09-05  5:30 ` mmitchel at gcc dot gnu dot org
  2003-12-23 10:24 ` steven at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2003-09-05  5:30 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.3.2                       |3.4


------- Additional Comments From mmitchel at gcc dot gnu dot org  2003-09-05 05:30 -------
This is an ICE after a valid error, so I've pushed it back to GCC 3.4.


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

* [Bug c/11995] [3.3/3.4 Regression] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
                   ` (3 preceding siblings ...)
  2003-09-05  5:30 ` mmitchel at gcc dot gnu dot org
@ 2003-12-23 10:24 ` steven at gcc dot gnu dot org
  2003-12-23 10:33 ` pinskia at gcc dot gnu dot org
  2003-12-23 12:01 ` cvs-commit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-12-23 10:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2003-12-23 10:04 -------
Looks fixed to me. 
 
$ ../cc1 --version 
GNU C version 3.4.0 20031223 (experimental) (i686-pc-linux-gnu) 
        compiled by GNU C version 3.4.0 20031223 (experimental). 
GGC heuristics: --param ggc-min-expand=56 --param ggc-min-heapsize=50000 
$ ../cc1 -std=c99 t.c 
 f 
 
t.c: In function `f': 
t.c:3: error: parse error before "int" 
 
Execution times (seconds) 
 parser                :   0.01 (50%) usr   0.00 ( 0%) sys   0.01 (50%) wall 
 TOTAL                 :   0.02             0.00             0.02 
$  

-- 


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


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

* [Bug c/11995] [3.3/3.4 Regression] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
                   ` (4 preceding siblings ...)
  2003-12-23 10:24 ` steven at gcc dot gnu dot org
@ 2003-12-23 10:33 ` pinskia at gcc dot gnu dot org
  2003-12-23 12:01 ` cvs-commit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23 10:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-23 10:18 -------
Fixed by me via the C99 fix, will add a testcase.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c/11995] [3.3/3.4 Regression] Error recovery problem after invalid labelled declaration in c99 mode
  2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
                   ` (5 preceding siblings ...)
  2003-12-23 10:33 ` pinskia at gcc dot gnu dot org
@ 2003-12-23 12:01 ` cvs-commit at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-23 12:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-12-23 10:33 -------
Subject: Bug 11995

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2003-12-23 10:33:01

Modified files:
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: 20031223-1.c 

Log message:
	2003-12-21  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/11995
	* gcc.dg/20031223-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3304&r2=1.3305
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/20031223-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

end of thread, other threads:[~2003-12-23 10:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-20 19:29 [Bug c/11995] New: Error recovery problem after invalid labelled declaration in c99 mode falk at debian dot org
2003-08-20 19:34 ` [Bug c/11995] " pinskia at gcc dot gnu dot org
2003-08-23  1:24 ` dhazeghi at yahoo dot com
2003-08-23 14:26 ` [Bug c/11995] [3.3/3.4 Regression] " pinskia at gcc dot gnu dot org
2003-09-05  5:30 ` mmitchel at gcc dot gnu dot org
2003-12-23 10:24 ` steven at gcc dot gnu dot org
2003-12-23 10:33 ` pinskia at gcc dot gnu dot org
2003-12-23 12:01 ` cvs-commit 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).