OSDN Git Service

PR c/42708
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jan 2010 23:09:00 +0000 (23:09 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Jan 2010 23:09:00 +0000 (23:09 +0000)
commit8c212779298ba5601ed25bc5bcb4037a734a4d3a
tree0e828be7f6462d1d72db441234272fd4b9656e59
parenta49d9163b7be3f1d595190e01b9841496f080e9c
PR c/42708
* c-typeck.c (build_c_cast): Fold value cast to union type before
wrapping it in a CONSTRUCTOR.

testsuite:
* gcc.c-torture/compile/pr42708-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155846 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr42708-1.c [new file with mode: 0644]