]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: problematic assert in reference_binding [PR113141]
authorPatrick Palka <ppalka@redhat.com>
Wed, 1 May 2024 22:16:08 +0000 (18:16 -0400)
committerPatrick Palka <ppalka@redhat.com>
Wed, 1 May 2024 22:16:08 +0000 (18:16 -0400)
commitc70abea054fe0021b7b2c2e07996afaadc17a07b
tree9f262bc82869cb48b0bd985572b06fd821b7b772
parent60e1e13f458f1fcfb05a30ace57fa682461e2732
c++: problematic assert in reference_binding [PR113141]

r14-9946 / r14-9947 fixed this PR properly for GCC 14.

For GCC 13, let's just remove the problematic assert.

PR c++/113141

gcc/cp/ChangeLog:

* call.cc (reference_binding): Remove badness criteria sanity
check in the recursive case.

gcc/testsuite/ChangeLog:

* g++.dg/conversion/ref12.C: New test.
* g++.dg/cpp0x/initlist-ref1.C: new test.
gcc/cp/call.cc
gcc/testsuite/g++.dg/conversion/ref12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist-ref1.C [new file with mode: 0644]