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
/
dependent-args1.C
blob
a540e55f4e52da420cf4e80d9c9162b1086457c0
1
// PR c++/27582
2
// { dg-do compile }
3
4
struct A
5
{
6
template<int> void foo();
7
};
8
9
template<int N, void (A::*)() = &A::foo<N> > struct B {};
10
11
B<int> b; // { dg-error "type/value mismatch|expected a constant|invalid type" }
12
13
// { dg-prune-output "could not convert" }