aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2021-06-08 09:19:58 -0400
committerJason Merrill <jason@redhat.com>2021-06-08 13:28:02 -0400
commit91349e57bbfd010156b9128b2ad751c8843e7245 (patch)
treeccede00a9fe5084f015b879f210916bcd0a72236 /gcc/cp/decl.c
parent69bb37f9e0143fbca3124069c0e9b6937ccf1fc7 (diff)
downloadgcc-91349e57bbfd010156b9128b2ad751c8843e7245.zip
gcc-91349e57bbfd010156b9128b2ad751c8843e7245.tar.gz
gcc-91349e57bbfd010156b9128b2ad751c8843e7245.tar.bz2
c++: braced-list overload resolution [PR100963]
My PR969626 patch made us ignore template candidates when there's a perfect non-template candidate. In this case, we were considering B(int) a perfect match for B({0}), but the brace elision makes it imperfect. PR c++/100963 gcc/cp/ChangeLog: * call.c (perfect_conversion_p): Check check_narrowing. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/initlist124.C: New test.
Diffstat (limited to 'gcc/cp/decl.c')
0 files changed, 0 insertions, 0 deletions