PR c++/88222 - ICE with bit-field with invalid type.
authorMarek Polacek <polacek@redhat.com>
Wed, 28 Nov 2018 20:03:06 +0000 (20:03 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 28 Nov 2018 20:03:06 +0000 (20:03 +0000)
commitbdd0bd5c96a1f3a51bcfe0cc5b0ffd3ff6f0280e
tree97c0fdde49806edb0cf7145c7a8c9ea7124efbc4
parent9638e3ef166cc37204143905bd8bec82a1f42437
PR c++/88222 - ICE with bit-field with invalid type.

* decl.c (grokdeclarator): Check if declarator is null.

* g++.dg/ext/flexary31.C: New test.

From-SVN: r266581
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/flexary31.C [new file with mode: 0644]