[all-commits] [llvm/llvm-project] d4f0f4: [Clang] Fix the access checking for non-aggregates...
Younan Zhang via All-commits
all-commits at lists.llvm.org
Fri May 23 05:11:43 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d4f0f43506d04807e82e5c722c6362bcf112a2a0
https://github.com/llvm/llvm-project/commit/d4f0f43506d04807e82e5c722c6362bcf112a2a0
Author: Younan Zhang <zyn7109 at gmail.com>
Date: 2025-05-23 (Fri, 23 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplateInstantiate.cpp
M clang/test/SemaCXX/access-control-check.cpp
Log Message:
-----------
[Clang] Fix the access checking for non-aggregates in default arguments (#141207)
We check the accessibility of constructors when initializing a default
argument whose type is not an aggregate.
Make sure the check is performed within the correct DeclContext.
Otherwise, it will be delayed until the end of the declaration, at which
point the context is mismatched.
Fixes #62444
Fixes https://github.com/llvm/llvm-project/issues/83608
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list