re PR c/17424 (ICE with sizeof an undeclared variable)
authorJoseph Myers <jsm@polyomino.org.uk>
Sat, 18 Sep 2004 18:28:14 +0000 (19:28 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 18 Sep 2004 18:28:14 +0000 (19:28 +0100)
commitad97f4bed6ac21187cce4f9267279d13ae56ecab
tree830f4247fa1b485a81b9d5118fdfb2e2eb711205
parent5995ebfb569204f9eb13f9269179881b139585f6
re PR c/17424 (ICE with sizeof an undeclared variable)

PR c/17424
* c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.

testsuite:
* gcc.dg/pr17424-1.c: New test.

From-SVN: r87705
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr17424-1.c [new file with mode: 0644]