diff options
author | Patrick Palka <ppalka@redhat.com> | 2024-09-20 12:31:40 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2024-09-20 12:31:40 -0400 |
commit | 06557ba12b64c57368673c46a21b14cf4e6afb50 (patch) | |
tree | 356dd355ed589f5e9cc3c13fe75c0146798df41a /gcc/fortran/error.cc | |
parent | 33cb400b2e7266e65030869254366217e51494aa (diff) | |
download | gcc-06557ba12b64c57368673c46a21b14cf4e6afb50.zip gcc-06557ba12b64c57368673c46a21b14cf4e6afb50.tar.gz gcc-06557ba12b64c57368673c46a21b14cf4e6afb50.tar.bz2 |
c++: CWG 2273 and non-constructors
Our implementation of the CWG 2273 inheritedness tiebreaker seems to be
incorrectly considering all member functions introduced via using, not
just constructors. This patch restricts the tiebreaker accordingly.
DR 2273
gcc/cp/ChangeLog:
* call.cc (joust): Restrict inheritedness tiebreaker to
constructors.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/using1.C: Expect ambiguity for non-constructor call.
* g++.dg/overload/using5.C: Likewise.
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/fortran/error.cc')
0 files changed, 0 insertions, 0 deletions