c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr84434.C
blobb005c95df1711a8d4bc8fe29000aa90a13cd5932
1 // PR c++/84434 ICE with deduction guide and dependent using decl
2 // { dg-do compile { target c++17 } }
4 template <typename T> class B {
5 public:
6   template <typename U> B (U)  {}
7 };
9 template <typename T>
10 struct scope_guard : B<T> {
11   using base_type = B<T>;
13   using base_type::base_type;
15    ~scope_guard() = default;
18 template <typename T>
19 scope_guard (T) -> scope_guard<T>;
21 void Frob () {
22   scope_guard (1);