Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp2a/nontype-class18.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // PR c++/90101 |
2 // { dg-do compile { target c++2a } } | |
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; |