// RUN: %clang_cc1 -fsyntax-only %s --std=c++17 -verify // This is a reduction of GH57370 and GH58028, originally appearing // in libstdc++'s variant code. struct V1 {}; struct V2 : V1 { int &a; }; template using void_t = void; template struct X { T x; }; template struct Variant { Variant() = delete; // expected-note {{deleted here}} }; template struct Variant{T1()})>> {}; void f() { Variant(); Variant(); // expected-error {{call to deleted constructor}} }