re PR c++/92705 (ICE: Segmentation fault (in build_new_op_1))
authorJason Merrill <jason@redhat.com>
Tue, 3 Dec 2019 08:20:18 +0000 (09:20 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Dec 2019 08:20:18 +0000 (09:20 +0100)
commite0daa2c86b74364a8ae13fc8e3f4a06c48139719
tree506b6dc9336252d86b95701bfda9102c64cc9c6f
parent5558a0da3248524d5fc081dc0580ab4f9e6eb0e2
re PR c++/92705 (ICE: Segmentation fault (in build_new_op_1))

PR c++/92705
* call.c (strip_standard_conversion): New function.
(build_new_op_1): Use it for user_conv_p.
(compare_ics): Likewise.
(source_type): Likewise.

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

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