PR c++/89024 - ICE with incomplete enum type.
authorMarek Polacek <polacek@redhat.com>
Sun, 27 Jan 2019 19:54:29 +0000 (19:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sun, 27 Jan 2019 19:54:29 +0000 (19:54 +0000)
commit73a54a61930af1aa355fdfb566c7a07af3a60cf8
tree08f37ac4f396d13388fd0ec1e39979593257cc50
parent9faf6e70187e2a425ae2c502b8c00dded63e6460
PR c++/89024 - ICE with incomplete enum type.

* call.c (standard_conversion): When converting an
ARITHMETIC_TYPE_P to an incomplete type, return NULL.

* g++.dg/cpp0x/enum37.C: New test.

From-SVN: r268320
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum37.C [new file with mode: 0644]