[PATCH] D113859: [Sema] Fix consteval function calls with value-dependent args

2022-08-19 Thread Utkarsh Saxena via Phabricator via cfe-commits
usaxena95 added a comment. Herald added a project: All. Update: The mentioned cases here are all now fixed at head (after D132031 ) // 1 consteval int f(int n) { return n; } template constexpr int broken() { return f(M); }

[PATCH] D113859: [Sema] Fix consteval function calls with value-dependent args

2021-11-14 Thread Léo Lam via Phabricator via cfe-commits
leoetlino added a comment. While this patch doesn't introduce new regressions and does fix compilation of the code snippet mentioned earlier, I'm not sure this is the correct approach, considering there are a bunch of other similar template-related consteval bugs that this patch does *not*

[PATCH] D113859: [Sema] Fix consteval function calls with value-dependent args

2021-11-14 Thread Léo Lam via Phabricator via cfe-commits
leoetlino created this revision. leoetlino added a reviewer: rsmith. Herald added a subscriber: kristof.beyls. leoetlino requested review of this revision. Herald added a project: clang. If any arguments of a consteval function call are value-dependent, the call cannot be evaluated until