As requested.
This depends on a few other patches though.
Differential D156045
[clang][Interp] Enable existing source_location tests tbaeder on Jul 22 2023, 11:56 PM. Authored by
Details As requested. This depends on a few other patches though.
Diff Detail
Unit Tests Event Timeline
Comment Actions I was rebasing D155064 locally and saw test failures for the new interpreter in this file. struct A { int n = __builtin_LINE(); }; struct B { A a = {}; }; #line 100 consteval void f() { constexpr B c = {}; static_assert(c.a.n == 101, ""); } Live demo: https://godbolt.org/z/9Y7bzj56G D155064 pushes constant-evaluated context against initializers of constexpr variables, so this bug appears in the test file. Comment Actions @hazohelet Thanks for noticing. Should be fixed via https://github.com/llvm/llvm-project/commit/f8074942c5a6f266abb1c4d1465a4d8115b22d43. |
The comment block just before this #if seems to say that the new interpreter is correct here...?