repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: change -fconcepts to mean C++20 concepts
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
class-deduction1.C
blob
7f427d053b8855cee32057d7081c0ab4406f0ca5
1
// { dg-do compile { target c++17_only } }
2
// { dg-options "-fconcepts-ts" }
3
4
template <class T>
5
concept bool Isint = __is_same_as(T,int);
6
7
template <class T>
8
struct A
9
{
10
int i;
11
A(...);
12
};
13
14
template <Isint I>
15
A(I) -> A<I>;
16
17
A a(1);
18
A a2(1.0); // { dg-error "" }