Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/concepts/var-concept5.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 // { dg-options "-std=c++17 -fconcepts" } |
2 | |
3 template<typename T1, typename T2> | |
4 concept bool C1 = true; | |
5 | |
6 template<typename T1, typename T2, typename T3> | |
7 concept bool C2 = true; | |
8 | |
9 | |
10 template<C1 T> // { dg-error "not a type" } | |
11 constexpr bool f1( ) { return true; } | |
12 | |
13 template<C2<int> T> // { dg-error "expected|not a type" } | |
14 constexpr bool f2( ) { return true; } |