public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27490]  New: [4.1/4.2 regression] ICE on broken sizeof expression
@ 2006-05-08 14:07 reichelt at gcc dot gnu dot org
  2006-05-08 15:43 ` [Bug c/27490] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-08 14:07 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since GCC 4.1.0:

==========================
void foo()
{
  sizeof(,);
}
==========================

bug.c: In function 'foo':
bug.c:3: error: expected expression before ',' token
bug.c:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in c_expr_sizeof_expr, at c-typeck.c:2119
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2 regression] ICE on broken sizeof expression
           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=27490


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

* [Bug c/27490] [4.1/4.2 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
@ 2006-05-08 15:43 ` pinskia at gcc dot gnu dot org
  2006-05-09 16:16 ` 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 @ 2006-05-08 15:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
   Target Milestone|---                         |4.1.1


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


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

* [Bug c/27490] [4.1/4.2 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
  2006-05-08 15:43 ` [Bug c/27490] " pinskia at gcc dot gnu dot org
@ 2006-05-09 16:16 ` pinskia at gcc dot gnu dot org
  2006-05-14 22:36 ` 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 @ 2006-05-09 16:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-05-09 16:15 -------
Confirmed. My patch in PR 27489 also fixes this case.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |27489
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-05-09 16:15:16
               date|                            |


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


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

* [Bug c/27490] [4.1/4.2 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
  2006-05-08 15:43 ` [Bug c/27490] " pinskia at gcc dot gnu dot org
  2006-05-09 16:16 ` pinskia at gcc dot gnu dot org
@ 2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:42 ` mmitchel 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 @ 2006-05-14 22:36 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c/27490] [4.1/4.2 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
  2006-06-30  6:08 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug c/27490] [4.1/4.2 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
@ 2006-06-30  6:08 ` pinskia at gcc dot gnu dot org
  2006-08-15  1:43 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-30  6:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-06-30 06:08 -------
Mine.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug c/27490] [4.1regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-08-15  1:43 ` pinskia at gcc dot gnu dot org
@ 2006-08-15  1:43 ` pinskia at gcc dot gnu dot org
  2006-10-05  3:43 ` [Bug c/27490] [4.1 regression] " pinskia at gcc dot gnu dot org
  2006-10-05  3:45 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-15  1:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-08-15 01:43 -------
Fixed at least on the mainline.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] ICE on |[4.1regression] ICE on
                   |broken sizeof expression    |broken sizeof expression


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


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

* [Bug c/27490] [4.1/4.2 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-06-30  6:08 ` pinskia at gcc dot gnu dot org
@ 2006-08-15  1:43 ` pinskia at gcc dot gnu dot org
  2006-08-15  1:43 ` [Bug c/27490] [4.1regression] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-15  1:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-08-15 01:43 -------
Subject: Bug 27490

Author: pinskia
Date: Tue Aug 15 01:43:28 2006
New Revision: 116148

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116148
Log:
2006-07-14  Andrew Pinski  <pinksia@physics.uc.edu>

        PR c/27490
        PR c/27489
        * c-typeck.c (build_compound_expr): If the second expression
        is an error mark, then just return an error mark instead of
        creating a COMPOUND_EXPR.
2006-08-14  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/27490
        * gcc.dg/sizeof-2.c: New testcase.

        PR c/27489
        * gcc.dg/switch-A.c: New testcase.



Added:
    trunk/gcc/testsuite/gcc.dg/sizeof-2.c
    trunk/gcc/testsuite/gcc.dg/switch-A.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/27490] [4.1 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-08-15  1:43 ` [Bug c/27490] [4.1regression] " pinskia at gcc dot gnu dot org
@ 2006-10-05  3:43 ` pinskia at gcc dot gnu dot org
  2006-10-05  3:45 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-05  3:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-10-05 03:43 -------
Subject: Bug 27490

Author: pinskia
Date: Thu Oct  5 03:43:36 2006
New Revision: 117448

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117448
Log:
2006-10-04  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/27490
        PR c/27489
        * c-typeck.c (build_compound_expr): If the second expression
        is an error mark, then just return an error mark instead of
        creating a COMPOUND_EXPR.
2006-10-04  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c/27490
        * gcc.dg/sizeof-2.c: New testcase.

        PR c/27489
        * gcc.dg/switch-A.c: New testcase.


Added:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/sizeof-2.c
      - copied unchanged from r116148, trunk/gcc/testsuite/gcc.dg/sizeof-2.c
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/switch-A.c
      - copied unchanged from r116148, trunk/gcc/testsuite/gcc.dg/switch-A.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/c-typeck.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/27490] [4.1 regression] ICE on broken sizeof expression
  2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-10-05  3:43 ` [Bug c/27490] [4.1 regression] " pinskia at gcc dot gnu dot org
@ 2006-10-05  3:45 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-05  3:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-10-05 03:45 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-10-05  3:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 14:07 [Bug c/27490] New: [4.1/4.2 regression] ICE on broken sizeof expression reichelt at gcc dot gnu dot org
2006-05-08 15:43 ` [Bug c/27490] " pinskia at gcc dot gnu dot org
2006-05-09 16:16 ` pinskia at gcc dot gnu dot org
2006-05-14 22:36 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:42 ` mmitchel at gcc dot gnu dot org
2006-06-30  6:08 ` pinskia at gcc dot gnu dot org
2006-08-15  1:43 ` pinskia at gcc dot gnu dot org
2006-08-15  1:43 ` [Bug c/27490] [4.1regression] " pinskia at gcc dot gnu dot org
2006-10-05  3:43 ` [Bug c/27490] [4.1 regression] " pinskia at gcc dot gnu dot org
2006-10-05  3:45 ` 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).