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++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash112.C
blob
ff35764c7c7aa71960cd3e4ebb15dc65e59a7526
1
// PR c++/51370
2
3
struct A
4
{
5
template<typename> void foo() {}
6
};
7
8
template<void (A::*)()> struct B {};
9
10
template<int> struct C
11
{
12
B<&A::foo<int int> > b; // { dg-error "declaration|type" }
13
};
14
15
C<0> c;
16
17
// { dg-prune-output "could not convert" }