diff options
author | kamlesh kumar <kamleshbhalui@gmail.com> | 2020-11-02 20:40:21 +0530 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-11-03 14:36:24 -0500 |
commit | ed7f9957bbb5e899099e1ef0e5f6234c453ef7da (patch) | |
tree | e234f66f71aead87f0e5a3feab0f35759ee690ef /gcc/omp-low.c | |
parent | a2058f5812bea3673859a68f9bfea61dbce6730f (diff) | |
download | gcc-ed7f9957bbb5e899099e1ef0e5f6234c453ef7da.zip gcc-ed7f9957bbb5e899099e1ef0e5f6234c453ef7da.tar.gz gcc-ed7f9957bbb5e899099e1ef0e5f6234c453ef7da.tar.bz2 |
c++: DR2303, ambiguous base deduction [PR97453]
When there are two possible matches and one is a base of the other, choose
the derived class rather than fail.
gcc/cp/ChangeLog
2020-10-21 Kamlesh Kumar <kamleshbhalui@gmail.com>
Jason Merrill <jason@redhat.com>
PR c++/97453
DR2303
* pt.c (get_template_base): Consider closest base in template
deduction when base of base also matches.
gcc/testsuite/ChangeLog
2020-10-21 Kamlesh Kumar <kamleshbhalui@gmail.com>
* g++.dg/DRs/dr2303.C: New test.
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions