diff options
| author | YanzuoLiu <zwuis@outlook.com> | 2024-05-03 16:20:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 10:20:42 +0200 |
| commit | 8480c93e36b33c237540e20c97cda8fb3d196f1f (patch) | |
| tree | 0b06f826d491f375ab440682ce6353168adc7574 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | e4b04b391ffcde180f9a8b1b83309b2163b44ce3 (diff) | |
[clang] pointer to member with qualified-id enclosed in parentheses in unevaluated context should be invalid (#89713)
clang don't check whether the operand of the & operator is enclosed in
parantheses when pointer to member is formed in unevaluated context, for
example:
```cpp
struct foo { int val; };
int main() { decltype(&(foo::val)) ptr; }
```
`decltype(&(foo::val))` should be invalid, but clang accepts it. This PR
fixes this issue.
Fixes #40906.
---------
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
