Otherwise, we run into an assertion when trying to use the current variable scope while creating temporaries for constructor initializers.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Generally LGTM but had an additional test request.
clang/test/AST/Interp/records.cpp | ||
---|---|---|
315 | Would it make sense to give Test a constexpr destructor so that we can validate it's being called? e.g. https://godbolt.org/z/fhE7xzE4e |
clang/test/AST/Interp/records.cpp | ||
---|---|---|
315 | That just tests regular destructors, doesn't it? That's already covered by other tests. |
clang/test/AST/Interp/records.cpp | ||
---|---|---|
315 | Yeah, that's fair I suppose. :-) |
Would it make sense to give Test a constexpr destructor so that we can validate it's being called? e.g. https://godbolt.org/z/fhE7xzE4e