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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
abstract-dr337.C
blob
4f66c1c118880e5c9ffec6511951e0f585e75b55
1
// PR c++/17232 (DR 337)
2
3
template<typename T>
4
class A {
5
virtual void f() = 0;
6
};
7
8
template<typename T>
9
void g(T (*a)[1]) {} // { dg-error "abstract" "" { xfail *-*-* } }
10
11
int main() {
12
g<A<int> >(0); // { dg-error "no matching function" "" { xfail *-*-* } }
13
}