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
/
static5.C
blob
05eaf8fbd551bd9e2e09b2ac4559dd469044c204
1
// { dg-do compile }
2
3
// Origin: Mirek Fidler <cxl@ntllib.org>
4
// Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5
6
// PR c++/12932: ICE address of static function as template argument
7
8
struct Test {
9
static void fun();
10
};
11
12
template <void (*fun)()>
13
void foo () { (*fun)(); }
14
15
16
template
17
void foo<Test::fun> ();