Issue 142865
Summary clang assert on invalid with is_constant_evaluated in template argument
Labels clang
Assignees
Reporter efriedma-quic
    ```
template<typename T, int I = 1/!__builtin_is_constant_evaluated()> class X;
void f(X<int, 1>* x) { x->a; }
```

templateArgumentExpressionsEqual() uses isIntegerConstantExpr(), then EvaluateKnownConstInt()... but they don't agree whether the InConstantContext should be set.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to