public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/14963] New: Unknown types cause ICE in function declarations
@ 2004-04-15 12:08 ekarttun at cs dot helsinki dot fi
  2004-04-15 12:10 ` [Bug c/14963] [3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ekarttun at cs dot helsinki dot fi @ 2004-04-15 12:08 UTC (permalink / raw)
  To: gcc-bugs

The following code causes the cvs HEAD of 2004-04-11 to crash:

X Y(Z);

With gcc 3.3.3 it produces a proper error.

The output is the following:

e@rei:~/objc/gcc-work/libobjc-fixes$ gcc crash.c 
crash.c:1: error: syntax error before "Y"
crash.c:1: warning: parameter names (without types) in function declaration
crash.c:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
e@rei:~/objc/gcc-work/libobjc-fixes$

-- 
           Summary: Unknown types cause ICE in function declarations
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ekarttun at cs dot helsinki dot fi
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
@ 2004-04-15 12:10 ` pinskia at gcc dot gnu dot org
  2004-06-27 19:49 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-15 12:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-15 11:38 -------
Confirmed a regression, most likely caused by Zack's c-decl rewrite.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zack at gcc dot gnu dot org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |error-recovery, ice-on-
                   |                            |invalid-code
      Known to fail|                            |3.5.0
      Known to work|                            |3.4.0 3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-15 11:38:27
               date|                            |
            Summary|Unknown types cause ICE in  |[3.5 Regression] Unknown
                   |function declarations       |types cause ICE in function
                   |                            |declarations
   Target Milestone|---                         |3.5.0


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
  2004-04-15 12:10 ` [Bug c/14963] [3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-06-27 19:49 ` pinskia at gcc dot gnu dot org
  2004-06-27 20:32 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 19:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 19:49 -------
I am working on fixing this one.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
  2004-04-15 12:10 ` [Bug c/14963] [3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-06-27 19:49 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 20:32 ` pinskia at gcc dot gnu dot org
  2004-06-27 20:47 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 20:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 20:30 -------
This is weird as I am able to reproduce it on i686-pc-linux-gnu but not powerpc-apple-darwin.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|i686-pc-linux-gnu           |
   GCC host triplet|i686-pc-linux-gnu           |


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
                   ` (3 preceding siblings ...)
  2004-06-27 20:47 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 20:47 ` cvs-commit at gcc dot gnu dot org
  2004-06-27 20:56 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-27 20:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-27 20:47 -------
Subject: Bug 14963

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-06-27 20:47:15

Modified files:
	gcc            : ChangeLog c-decl.c 

Log message:
	2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/14963
	* c-decl.c (start_decl): Check for null types.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4164&r2=2.4165
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.519&r2=1.520



-- 


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
                   ` (2 preceding siblings ...)
  2004-06-27 20:32 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 20:47 ` pinskia at gcc dot gnu dot org
  2004-06-27 20:47 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 20:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 20:32 -------
But it must have to due with targetm.calls.promote_prototypes :).

-- 


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
                   ` (4 preceding siblings ...)
  2004-06-27 20:47 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-27 20:56 ` pinskia at gcc dot gnu dot org
  2004-06-27 20:58 ` cvs-commit at gcc dot gnu dot org
  2004-06-27 21:22 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-27 20:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-27 20:47 -------
Fixed.

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


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
                   ` (5 preceding siblings ...)
  2004-06-27 20:56 ` pinskia at gcc dot gnu dot org
@ 2004-06-27 20:58 ` cvs-commit at gcc dot gnu dot org
  2004-06-27 21:22 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-27 20:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-27 20:55 -------
Subject: Bug 14963

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-06-27 20:55:56

Modified files:
	gcc/testsuite  : ChangeLog 

Log message:
	2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/14963
	* gcc.dg/pr14963.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3904&r2=1.3905



-- 


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


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

* [Bug c/14963] [3.5 Regression] Unknown types cause ICE in function declarations
  2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
                   ` (6 preceding siblings ...)
  2004-06-27 20:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-27 21:22 ` cvs-commit at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-27 21:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-27 20:58 -------
Subject: Bug 14963

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2004-06-27 20:58:34

Added files:
	gcc/testsuite/gcc.dg: pr14963.c 

Log message:
	2004-06-27  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/14963
	* gcc.dg/pr14963.c: New test.

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



-- 


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


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

end of thread, other threads:[~2004-06-27 20:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-15 12:08 [Bug c/14963] New: Unknown types cause ICE in function declarations ekarttun at cs dot helsinki dot fi
2004-04-15 12:10 ` [Bug c/14963] [3.5 Regression] " pinskia at gcc dot gnu dot org
2004-06-27 19:49 ` pinskia at gcc dot gnu dot org
2004-06-27 20:32 ` pinskia at gcc dot gnu dot org
2004-06-27 20:47 ` pinskia at gcc dot gnu dot org
2004-06-27 20:47 ` cvs-commit at gcc dot gnu dot org
2004-06-27 20:56 ` pinskia at gcc dot gnu dot org
2004-06-27 20:58 ` cvs-commit at gcc dot gnu dot org
2004-06-27 21:22 ` 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).