Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think this would be an interesting test:
struct S { /*not constexpr*/ S(); constexpr ~S() {} }; S s; // no warning struct T { /*not constexpr*/ T(); constexpr ~T() { if (b) {} } bool b; }; T t; // expected-warning {{exit-time destructor}}
(For a non-constexpr variable with a constexpr destructor, our behaviour depends on whether the destructor call is a constant expression.)
Comment Actions
Thanks @rsmith; I don't have commit access, so can you land the updated patch for me?