re PR c++/81640 (ICE in lookup_fnfields_slot_nolazy w/ -Wshadow=compatible-local)
authorJakub Jelinek <jakub@redhat.com>
Wed, 2 Aug 2017 07:28:21 +0000 (09:28 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Aug 2017 07:28:21 +0000 (09:28 +0200)
commite4f0733af41d5fa2035f6eceb24a74ccba13afcf
treef01a1db155b779b4ad8d878c8fe5bbfb4771c573
parent349721b7de62e4b30a7ecfd7cb157bfcb73e738d
re PR c++/81640 (ICE in lookup_fnfields_slot_nolazy w/ -Wshadow=compatible-local)

PR c++/81640
* call.c (build_user_type_conversion_1): Only call
lookup_fnfields_slot if totype is CLASS_TYPE_P.

* g++.dg/warn/Wshadow-compatible-local-2.C: New test.

From-SVN: r250816
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wshadow-compatible-local-2.C [new file with mode: 0644]