blob: 0cdb400d21c4f3fca5561a4c87835a10a69bee4d [file] [log] [blame]
// PR c++/87765
// { dg-do compile { target c++17 } }
// { dg-additional-options "-fchecking" }
// { dg-ice "cxx_eval_constant_expression" }
template <int N>
using foo = int;
struct A {
constexpr int bar() const { return 42; }
};
void baz(A a) {
[=](auto c) { return foo<a.bar()> { }; }; }