blob: b534fdbab6f6389ef7f92df4dc5a65602518d838 [file] [log] [blame]
// PR c++/80973
// { dg-do compile }
// { dg-options "-fsanitize=undefined -std=c++14" }
struct A {
A();
A(const A &);
};
struct B {
B();
template <typename... Args> auto g(Args &&... p1) {
return [=] { f(p1...); };
}
void f(A, const char *);
};
B::B() { g(A(), ""); }