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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
concepts
/
inherit-ctor4.C
blob
26940ba44be8278a4bb547c7d83de3476b6097b6
1
// { dg-options "-std=c++17 -fconcepts" }
2
3
template<typename T>
4
concept bool C() { return __is_class(T); }
5
6
template<typename T>
7
struct S1 {
8
template<C U> S1(U x) { }
9
};
10
11
template<typename T>
12
struct S2 : S1<T> {
13
using S1<T>::S1;
14
};
15
16
int main() {
17
S2<int> s(0); // { dg-error "no matching function" }
18
}