re PR c/81231 (ICE with invalid argument to __atomic_*)
authorMarek Polacek <polacek@redhat.com>
Tue, 4 Jul 2017 12:17:22 +0000 (12:17 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 4 Jul 2017 12:17:22 +0000 (12:17 +0000)
commitefbf55b01cc45b0550830e0008db9ea6bae22f5e
tree02b7a9e51982ce84c4f2027e8a0858254f250f50
parentf0622a50ee34de71759339e244d039c169e204ba
re PR c/81231 (ICE with invalid argument to __atomic_*)

PR c/81231
* c-common.c (sync_resolve_size): Give error for pointers to incomplete
types.

* gcc.dg/atomic-pr81231.c: New test.

From-SVN: r249963
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/atomic-pr81231.c [new file with mode: 0644]