[PATCH] D42776: [Sema] Fix an assertion failure in constant expression evaluation of calls to functions with default arguments
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 12 18:49:16 PST 2018
ahatanak added a comment.
OK, I see. It's pretty easy to come up with an example.
constexpr int foo1(int a = 12) {
return a * a;
}
constexpr int foo2(int a = foo1()) {
return a - 12;
}
https://reviews.llvm.org/D42776
More information about the cfe-commits
mailing list