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
[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
ptrmem20.C
blob
e17ed84c739fa103b657c9aece3b562f58def084
1
// PR c++/43079
2
3
struct A {};
4
5
struct B
6
{
7
void foo() const;
8
void foo();
9
};
10
11
template<void (A::*)()> void bar(); // { dg-message "note" }
12
13
void baz()
14
{
15
bar<&B::foo>(); // { dg-error "template argument|no match" }
16
}