public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22028] New: ICE after invalid struct declaration
@ 2005-06-11 23:52 falk at debian dot org
  2005-06-12  0:10 ` [Bug middle-end/22028] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: falk at debian dot org @ 2005-06-11 23:52 UTC (permalink / raw)
  To: gcc-bugs

falk@juist:/tmp% cat bug.c && gcc -c bug.c
int f(){
    struct { int i[]; } u;
}

bug.c: In function 'f':
bug.c:2: error: flexible array member in otherwise empty struct
bug.c:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in gimplify_type_sizes, at gimplify.c:4491
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ICE after invalid struct declaration
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery
          Severity: normal
          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


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


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

* [Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
@ 2005-06-12  0:10 ` pinskia at gcc dot gnu dot org
  2005-06-19 20:15 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-12  0:10 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 00:10 -------
Confirmed, caused by:

2005-06-01  Jakub Jelinek  <jakub@redhat.com>

        PR c/21536
        PR c/20760
        * gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
        on variable sizes types if a decl is a pointer to a VLA.
        (gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
        Call gimplify_type_sizes on aggregate fields.  Prevent infinite
        recursion.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
          Component|c                           |middle-end
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.1 4.1.0
      Known to work|                            |4.0.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-12 00:10:15
               date|                            |
            Summary|ICE after invalid struct    |[4.0/4.1 Regression] ICE
                   |declaration                 |after invalid struct
                   |                            |declaration
   Target Milestone|---                         |4.0.1


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


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

* [Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
  2005-06-12  0:10 ` [Bug middle-end/22028] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-06-19 20:15 ` pinskia at gcc dot gnu dot org
  2005-06-19 20:16 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 20:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-19 20:15 -------
*** Bug 22125 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pluto at agmk dot net


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


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

* [Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
  2005-06-12  0:10 ` [Bug middle-end/22028] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-06-19 20:15 ` pinskia at gcc dot gnu dot org
@ 2005-06-19 20:16 ` pinskia at gcc dot gnu dot org
  2005-06-20 14:47 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 20:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-19 20:16 -------
Another testcase:
void foo() 
{ 
    struct { 
        struct a _a; 
    } c; 
} 

>From the dup bug.

-- 


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


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

* [Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (2 preceding siblings ...)
  2005-06-19 20:16 ` pinskia at gcc dot gnu dot org
@ 2005-06-20 14:47 ` pinskia at gcc dot gnu dot org
  2005-06-26  5:24 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-20 14:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-20 14:46 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-06/msg01667.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2005-
                   |                            |06/msg01667.html
           Keywords|                            |patch


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


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

* [Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (3 preceding siblings ...)
  2005-06-20 14:47 ` pinskia at gcc dot gnu dot org
@ 2005-06-26  5:24 ` cvs-commit at gcc dot gnu dot org
  2005-06-26 10:33 ` steven at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-26  5:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-26 05:23 -------
Subject: Bug 22028

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jakub@gcc.gnu.org	2005-06-26 05:23:49

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

Log message:
	PR middle-end/22028
	* gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
	earlier in the function.
	
	* gcc.dg/20050620-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9230&r2=2.9231
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&r1=2.138&r2=2.139
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5686&r2=1.5687
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/20050620-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (4 preceding siblings ...)
  2005-06-26  5:24 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-26 10:33 ` steven at gcc dot gnu dot org
  2005-06-26 14:34 ` [Bug middle-end/22028] [4.0 " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: steven at gcc dot gnu dot org @ 2005-06-26 10:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From steven at gcc dot gnu dot org  2005-06-26 10:33 -------
Jakub, if this is fixed, please close the report. 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


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


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

* [Bug middle-end/22028] [4.0 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (5 preceding siblings ...)
  2005-06-26 10:33 ` steven at gcc dot gnu dot org
@ 2005-06-26 14:34 ` pinskia at gcc dot gnu dot org
  2005-07-08  1:45 ` mmitchel at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-26 14:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-26 14:34 -------
Fixed at least on the mainline, still broken on the 4.0 branch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|4.0.1 4.1.0                 |4.0.1
      Known to work|4.0.0                       |4.0.0 4.1.0
            Summary|[4.0/4.1 Regression] ICE    |[4.0 Regression] ICE after
                   |after invalid struct        |invalid struct declaration
                   |declaration                 |


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


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

* [Bug middle-end/22028] [4.0 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (6 preceding siblings ...)
  2005-06-26 14:34 ` [Bug middle-end/22028] [4.0 " pinskia at gcc dot gnu dot org
@ 2005-07-08  1:45 ` mmitchel at gcc dot gnu dot org
  2005-07-09  9:31 ` cvs-commit at gcc dot gnu dot org
  2005-07-09 15:13 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08  1:45 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.1                       |4.0.2


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


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

* [Bug middle-end/22028] [4.0 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (7 preceding siblings ...)
  2005-07-08  1:45 ` mmitchel at gcc dot gnu dot org
@ 2005-07-09  9:31 ` cvs-commit at gcc dot gnu dot org
  2005-07-09 15:13 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-09  9:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-07-09 09:16 -------
Subject: Bug 22028

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	jakub@gcc.gnu.org	2005-07-09 09:16:09

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

Log message:
	Backport from the mainline:
	2005-06-26  Jakub Jelinek  <jakub@redhat.com>
	PR middle-end/22028
	* gimplify.c (gimplify_type_sizes): Check for type == error_mark_node
	earlier in the function.
	
	* gcc.dg/20050620-1.c: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.308&r2=2.7592.2.309
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimplify.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.113.2.6&r2=2.113.2.7
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.259&r2=1.5084.2.260
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/20050620-1.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.8.1



-- 


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


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

* [Bug middle-end/22028] [4.0 Regression] ICE after invalid struct declaration
  2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
                   ` (8 preceding siblings ...)
  2005-07-09  9:31 ` cvs-commit at gcc dot gnu dot org
@ 2005-07-09 15:13 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-09 15:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-09 15:13 -------
Fixed.

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


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


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

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

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-11 23:52 [Bug c/22028] New: ICE after invalid struct declaration falk at debian dot org
2005-06-12  0:10 ` [Bug middle-end/22028] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-06-19 20:15 ` pinskia at gcc dot gnu dot org
2005-06-19 20:16 ` pinskia at gcc dot gnu dot org
2005-06-20 14:47 ` pinskia at gcc dot gnu dot org
2005-06-26  5:24 ` cvs-commit at gcc dot gnu dot org
2005-06-26 10:33 ` steven at gcc dot gnu dot org
2005-06-26 14:34 ` [Bug middle-end/22028] [4.0 " pinskia at gcc dot gnu dot org
2005-07-08  1:45 ` mmitchel at gcc dot gnu dot org
2005-07-09  9:31 ` cvs-commit at gcc dot gnu dot org
2005-07-09 15:13 ` pinskia 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).