OSDN Git Service

PR c/22367
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Apr 2009 22:34:10 +0000 (22:34 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 18 Apr 2009 22:34:10 +0000 (22:34 +0000)
commit1b157e431c5890768ac6cb4f6f93906258a618f5
tree77e977c132707d7acd5acdad294ab595d741a594
parent855225481e6a82ff317d14c9484a53faf40a98ca
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146332 138bc75d-0d04-0410-961f-82ee72b054a4
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]