We need to call them like any other function, so we can generate proper diagnostics.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/test/AST/Interp/records.cpp | ||
---|---|---|
582 | Which DTOR is happening here that changes behavior in this patch? You removed the isConstexpr test, but it seems to me that the S destructor is constexpr, right? |
clang/test/AST/Interp/records.cpp | ||
---|---|---|
582 | Function::isConstexpr() doesn't return the same as FunctionDecl::isConstexpr() - it's just return IsValid right now, so if the compilation of the function aborts at any point, Function::isConstexpr() returns false (even if the function that was compiled is constexpr). |
Which DTOR is happening here that changes behavior in this patch? You removed the isConstexpr test, but it seems to me that the S destructor is constexpr, right?