diff options
| author | Timm Baeder <tbaeder@redhat.com> | 2025-01-28 15:04:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 15:04:44 +0100 |
| commit | 4bd2307a2085f0ace05e0b1b11c1c47ff3870110 (patch) | |
| tree | 12bfc681bd56aac3d6362f0a083f8434b162cb47 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 79499f010d2bfe809187a9a5f042d4e4ee1f1bcc (diff) | |
[clang][ExprConst] Don't diagnose a non-existent init as not constant (#124575)
This test:
```c++
extern Swim& trident; // expected-note {{declared here}}
constexpr auto& gallagher = typeid(trident); // expected-error {{constexpr variable 'gallagher' must be initialized by a constant expression}}
// expected-note@-1 {{initializer of 'trident' is not a constant expression}}
```
diagnosed the initializer of `trident` as not constant, but `trident`
doesn't even have an initializer. Remove that diagnostic in this case.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
