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
/
ext
/
typeof9.C
blob
1547c0f2f6cd9ed33528e160bce9db69ae27ac75
1
// { dg-do compile }
2
3
// Origin: gcc-bug@vogtner.de
4
5
// PR c++/14106: ICE with typeof of function template.
6
7
template<class T>
8
void j (T i)
9
{
10
}
11
12
template<typename T>
13
void instanciate () {
14
static void (*fp) (T) = j;
15
__typeof__ (j) *p; // { dg-error "unknown|invalid" }
16
}
17
template void instanciate<float>();