1 // PR c++/78282 2 // { dg-do compile { target c++14 } } 3 4 struct null_node 5 { 6 null_node(const null_node&); 7 }; 8 9 extern null_node null; 10 11 template <typename T> get()12auto get() { return null; } 13 14 template <typename... Ts> 15 struct inheritor: Ts... 16 { 17 inheritor(const inheritor& outer) 18 : Ts(get<Ts...>())... 19 { } 20 }; 21 test()22void test() 23 { 24 extern inheritor<null_node> example; 25 inheritor<null_node> result(example); 26 } 27