[all-commits] [llvm/llvm-project] 3c459c: [Clang] Fix handling of qualified id-expressions i...
cor3ntin via All-commits
all-commits at lists.llvm.org
Mon Jul 22 06:57:44 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3c459cfcaebdaf7cabac33a0e18bf6588cef4cdb
https://github.com/llvm/llvm-project/commit/3c459cfcaebdaf7cabac33a0e18bf6588cef4cdb
Author: cor3ntin <corentinjabot at gmail.com>
Date: 2024-07-22 (Mon, 22 Jul 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaExpr.cpp
M clang/test/CXX/expr/expr.unary/expr.unary.op/p4.cpp
Log Message:
-----------
[Clang] Fix handling of qualified id-expressions in unevaluated contexts (#99807)
In #89713, we made qualified, parenthesized id-expression ill-formed in
and address of expressions.
The expected behavior should instead be to form a pointer (rather than a
pointer to member)
The fix has been suggested by @zwuis and the tests by
@hubert-reinterpretcast.
It is worth pointing out that some of these tests seem rejected by all
compilers, however the tests do seem correct.
Fixes #89713
Fixes #40906
---------
Co-authored-by: YanzuoLiu <zwuis at outlook.com>
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