]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
re PR c/22240 (ICE with transparent unions, function pointers and -pedantic)
authorJoseph Myers <joseph@codesourcery.com>
Fri, 29 Jul 2005 02:46:50 +0000 (03:46 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Fri, 29 Jul 2005 02:46:50 +0000 (03:46 +0100)
commit13b22d3a861a9d82fe3b70e5cb11ca5c2a9d4c98
treec843164bfc516d350898eb7912dcbbe95a18ab88
parentca8bdb78eabbe748e23754fcf2fd8e4bf308f2c4
re PR c/22240 (ICE with transparent unions, function pointers and -pedantic)

PR c/22240
* c-typeck.c (convert_for_assignment): Do not check
DECL_IN_SYSTEM_HEADER on NULL fundecl.

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

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