re PR c/35748 (ICE with cast to invalid union)
authorVolker Reichelt <v.reichelt@netcologne.de>
Sun, 30 Mar 2008 21:58:43 +0000 (21:58 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Sun, 30 Mar 2008 21:58:43 +0000 (21:58 +0000)
commit39ffbac9119e258b475386c959ff50af31a270b4
tree724285c052db9e33f0f2eea4f82cf39b07d6021b
parent23594c97b3ec375024937db9491f82c0f07e1b4b
re PR c/35748 (ICE with cast to invalid union)

PR c/35748
* c-typeck.c (build_c_cast): Skip invalid fields in unions.

* gcc.dg/union-cast-4.c: New test.

From-SVN: r133737
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/union-cast-4.c [new file with mode: 0644]