Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/nontype-class18.C

raw
1 // PR c++/90101
2 // { dg-do compile { target c++20 } }
3
4 template<typename List>
5 struct A;
6
7 template<template<auto...> typename List>
8 struct A<List<>> {};
9
10 template<template<auto...> typename List, auto V>
11 struct A<List<V>> {};
12
13 template<auto>
14 struct B {};
15
16 struct X { int value; };
17 A<B<X{1}>> a2;