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++ PATCH] Deprecate -ffriend-injection
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
class-deduction1.C
blob
476830d9252828b6113f922084e71d82d97fb000
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template <class T>
4
concept bool Isint = __is_same_as(T,int);
5
6
template <class T>
7
struct A
8
{
9
int i;
10
A(...);
11
};
12
13
template <Isint I>
14
A(I) -> A<I>;
15
16
A a(1);
17
A a2(1.0); // { dg-error "" }