re PR c/22367 (constraints on '&' not fully implemented)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 18 Apr 2009 22:34:10 +0000 (23:34 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 18 Apr 2009 22:34:10 +0000 (23:34 +0100)
commit2b4b70360f735644f8df105d2057023135367168
tree77e977c132707d7acd5acdad294ab595d741a594
parent5cf217fff1128005fb24e95ffa0b72c844af3d37
re PR c/22367 (constraints on '&' not fully implemented)

PR c/22367
* c-typeck.c (build_unary_op): Check for taking address of
expression of type void.

testsuite:
* gcc.dg/lvalue-6.c, gcc.dg/lvalue-7.c: New tests.

From-SVN: r146332
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/lvalue-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/lvalue-7.c [new file with mode: 0644]