[Bug c/14765] New: ice-on-invalid-code, ICE while compiling ({}) expression

1319 at bot dot ru gcc-bugzilla@gcc.gnu.org
Sun Mar 28 22:52:00 GMT 2004


$ cat bug2.i
int a;
void fun ()
{
	a = 0;
	a = ({});
}
$ gcc-3.3 bug2.i
bug2.i: In function `fun':
bug2.i:5: 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.

$ gcc-3.5-tree-ssa bug2.i
bug2.i: In function `fun':
bug2.i:5: warning: statement-expressions should end with a non-void expression
gimplification failed:
<STATEMENT_LIST> <statement_list 0x4051f630
    type <void_type 0x40461984 void VOID
        align 8 symtab 0 alias set -1
        pointer_to_this <pointer_type 0x404619f8>>
   >
bug2.i:5: internal compiler error: in gimplify_expr, at gimplify.c:3496
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ice-on-invalid-code, ICE while compiling ({}) expression
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 1319 at bot dot ru
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list