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
Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git]
/
main
/
gcc
/
testsuite
/
g++.dg
/
parse
/
ambig7.C
blob
9a5b8791d24358d0b37cd17be98319b4e5d9577c
1
// PR c++/60361
2
3
struct Helper
4
{
5
Helper(int a, void (*pfunc)());
6
};
7
8
template <int I> void function();
9
10
const int A = 1;
11
const int B = 2;
12
13
Helper testOk(A, function<A>);
14
Helper testOk2(int(A), function<B>);
15
Helper testOk3((int(A)), function<A>);
16
Helper testFail(int(A), function<A>);