A couple of dg-ice tests. gcc/testsuite/ChangeLog: PR c++/52830 PR c++/88982 PR c++/90799 PR c++/87765 PR c++/89565 * g++.dg/cpp0x/constexpr-52830.C: New test. * g++.dg/cpp0x/vt-88982.C: New test. * g++.dg/cpp1z/class-deduction76.C: New test. * g++.dg/cpp1z/constexpr-lambda26.C: New test. * g++.dg/cpp2a/nontype-class39.C: New test.
14 lines
255 B
C
14 lines
255 B
C
// PR c++/87765
|
|
// { dg-do compile { target c++17 } }
|
|
// { 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()> { }; }; }
|