PR c++/91877 - ICE with converting member of packed struct.
authorMarek Polacek <polacek@redhat.com>
Wed, 25 Sep 2019 13:53:04 +0000 (13:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 25 Sep 2019 13:53:04 +0000 (13:53 +0000)
commitb134cab0cfb4283b3b5581d81ae777d684af82a9
tree9950f741bf6cd510226d0aac3214475bfaf14a29
parent9a3afc3564b36fb34826899a345a9c35b1c53e39
PR c++/91877 - ICE with converting member of packed struct.

* call.c (convert_like_real): Use similar_type_p in an assert.

* g++.dg/conversion/packed1.C: New test.

From-SVN: r276127
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/packed1.C [new file with mode: 0644]