aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2025-01-28 09:27:02 -0500
committerPatrick Palka <ppalka@redhat.com>2025-01-28 09:27:02 -0500
commitea578dd251eaf6304b0c95acc107f9a4d63bee8f (patch)
tree5fff703cc21a817419400813248a5936dc6f5213 /gcc/expr.cc
parent3ccbc8c9d182c380e396631b2b5a683de4fddba9 (diff)
downloadgcc-ea578dd251eaf6304b0c95acc107f9a4d63bee8f.zip
gcc-ea578dd251eaf6304b0c95acc107f9a4d63bee8f.tar.gz
gcc-ea578dd251eaf6304b0c95acc107f9a4d63bee8f.tar.bz2
c++: friend vs inherited guide confusion [PR117855]
We recently started using the lang_decl_fn::context field to track inheritedness of a deduction guide (for C++23 inherited CTAD). This new overloading of the field accidentally made DECL_FRIEND_CONTEXT return non-NULL for inherited guides, which breaks the below testcase during overload resolution with an inherited guide. This patch fixes this by refining DECL_FRIEND_CONTEXT appropriately. PR c++/117855 gcc/cp/ChangeLog: * cp-tree.h (DECL_FRIEND_CONTEXT): Exclude deduction guides. gcc/testsuite/ChangeLog: * g++.dg/cpp23/class-deduction-inherited7.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions