diff options
author | Patrick Palka <ppalka@redhat.com> | 2021-07-16 16:21:10 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2021-07-16 16:21:10 -0400 |
commit | d04b0c75794545f1f7a942764285e21eaf2915a1 (patch) | |
tree | b6d7e09642e68a99009793d8e96486d9578fe91f /gcc/tree-loop-distribution.c | |
parent | 9faf8348621ae6ab583af593d67ac424300a2bad (diff) | |
download | gcc-d04b0c75794545f1f7a942764285e21eaf2915a1.zip gcc-d04b0c75794545f1f7a942764285e21eaf2915a1.tar.gz gcc-d04b0c75794545f1f7a942764285e21eaf2915a1.tar.bz2 |
c++: covariant reference return types [PR99664]
This implements the wording changes of CWG 960 which clarifies that two
reference types are covariant only if they're both lvalue references
or both rvalue references.
DR 960
PR c++/99664
gcc/cp/ChangeLog:
* search.c (check_final_overrider): Compare TYPE_REF_IS_RVALUE
when the return types are references.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/covariant23.C: New test.
Diffstat (limited to 'gcc/tree-loop-distribution.c')
0 files changed, 0 insertions, 0 deletions