Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/class-deduction115.C

raw
1 // { dg-do compile { target c++17 } }
2
3 template<template<class> class>
4 struct A { };
5
6 template<class T>
7 struct B {
8 template<template<class> class TT, A<TT>* = nullptr>
9 B(TT<T>);
10 };
11
12 template<class T>
13 struct C { };
14
15 using type = decltype(B{C<int>{}});
16 using type = B<int>;