This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/27718] [4.0/4.1/4.2 regression] ICE with sizeof of incomplete type
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2006 13:33:25 -0000
- Subject: [Bug c/27718] [4.0/4.1/4.2 regression] ICE with sizeof of incomplete type
- References: <bug-27718-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from reichelt at gcc dot gnu dot org 2006-05-30 13:33 -------
Subject: Bug 27718
Author: reichelt
Date: Tue May 30 13:33:17 2006
New Revision: 114234
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114234
Log:
PR c/27718
* c-typeck.c (c_expr_sizeof_type): Handle invalid types.
* gcc.dg/sizeof-1.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/sizeof-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27718