public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/28136]  New: [4.0/4.1/4.2 regression] ICE with incomplete array type
@ 2006-06-22 11:49 reichelt at gcc dot gnu dot org
  2006-06-22 13:27 ` [Bug c/28136] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-06-22 11:49 UTC (permalink / raw)
  To: gcc-bugs

The C frontend crashes on the following line of invalid code since GCC 4.0.0:

================================
int i = (struct A[]) {};
================================

bug.c:1: error: array type has incomplete element type
bug.c:1: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in c_parser_postfix_expression_after_paren_type, at
c-parser.c:5432
Please submit a full bug report, [etc.]

Before the code was wrongly accepted.

I'll post a patch soon.


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with incomplete array type
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c/28136] [4.0/4.1/4.2 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
@ 2006-06-22 13:27 ` pinskia at gcc dot gnu dot org
  2006-06-29 21:41 ` patchapp at dberlin dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-22 13:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.4


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


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

* [Bug c/28136] [4.0/4.1/4.2 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
  2006-06-22 13:27 ` [Bug c/28136] " pinskia at gcc dot gnu dot org
@ 2006-06-29 21:41 ` patchapp at dberlin dot org
  2006-07-17  2:49 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-06-29 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from patchapp at dberlin dot org  2006-06-29 21:41 -------
Subject: Bug number PR c/28136

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-06/msg01224.html


-- 


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


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

* [Bug c/28136] [4.0/4.1/4.2 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
  2006-06-22 13:27 ` [Bug c/28136] " pinskia at gcc dot gnu dot org
  2006-06-29 21:41 ` patchapp at dberlin dot org
@ 2006-07-17  2:49 ` mmitchel at gcc dot gnu dot org
  2006-08-05 23:09 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17  2:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


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


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

* [Bug c/28136] [4.0/4.1/4.2 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-07-17  2:49 ` mmitchel at gcc dot gnu dot org
@ 2006-08-05 23:09 ` reichelt at gcc dot gnu dot org
  2006-08-05 23:14 ` reichelt at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-05 23:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from reichelt at gcc dot gnu dot org  2006-08-05 23:09 -------
Subject: Bug 28136

Author: reichelt
Date: Sat Aug  5 23:08:54 2006
New Revision: 115952

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115952
Log:
        PR c/28136
        * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.

        * gcc.dg/init-bad-5.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/init-bad-5.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-parser.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/28136] [4.0/4.1/4.2 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-08-05 23:09 ` reichelt at gcc dot gnu dot org
@ 2006-08-05 23:14 ` reichelt at gcc dot gnu dot org
  2006-08-05 23:20 ` [Bug c/28136] [4.0 " reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-05 23:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from reichelt at gcc dot gnu dot org  2006-08-05 23:14 -------
Subject: Bug 28136

Author: reichelt
Date: Sat Aug  5 23:14:22 2006
New Revision: 115953

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115953
Log:
        PR c/28136
        * c-parser.c (c_parser_postfix_expression_after_paren_type): Robustify.

        * gcc.dg/init-bad-5.c: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/init-bad-5.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/c-parser.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/28136] [4.0 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-08-05 23:14 ` reichelt at gcc dot gnu dot org
@ 2006-08-05 23:20 ` reichelt at gcc dot gnu dot org
  2006-08-08 17:00 ` patchapp at dberlin dot org
  2007-02-03 17:41 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-05 23:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2006-08-05 23:20 -------
Fixed on mainline and 4.1 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.0/4.1/4.2 regression] ICE|[4.0 regression] ICE with
                   |with incomplete array type  |incomplete array type


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


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

* [Bug c/28136] [4.0 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-08-05 23:20 ` [Bug c/28136] [4.0 " reichelt at gcc dot gnu dot org
@ 2006-08-08 17:00 ` patchapp at dberlin dot org
  2007-02-03 17:41 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: patchapp at dberlin dot org @ 2006-08-08 17:00 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from patchapp at dberlin dot org  2006-08-08 17:00 -------
Subject: Bug number PR c/28136

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00214.html


-- 


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


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

* [Bug c/28136] [4.0 regression] ICE with incomplete array type
  2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-08-08 17:00 ` patchapp at dberlin dot org
@ 2007-02-03 17:41 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 17:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from gdr at gcc dot gnu dot org  2007-02-03 17:40 -------
Fixed in GCC-4.1.2


-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.0.4                       |4.1.2


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


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

end of thread, other threads:[~2007-02-03 17:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-22 11:49 [Bug c/28136] New: [4.0/4.1/4.2 regression] ICE with incomplete array type reichelt at gcc dot gnu dot org
2006-06-22 13:27 ` [Bug c/28136] " pinskia at gcc dot gnu dot org
2006-06-29 21:41 ` patchapp at dberlin dot org
2006-07-17  2:49 ` mmitchel at gcc dot gnu dot org
2006-08-05 23:09 ` reichelt at gcc dot gnu dot org
2006-08-05 23:14 ` reichelt at gcc dot gnu dot org
2006-08-05 23:20 ` [Bug c/28136] [4.0 " reichelt at gcc dot gnu dot org
2006-08-08 17:00 ` patchapp at dberlin dot org
2007-02-03 17:41 ` gdr 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).