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
2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
conv-tmpl1.C
blob
eb40dd66a5c5a59e2bfaad01d8cceeb32bd65f95
1
// Test for Core 2189.
2
// { dg-do compile { target c++11 } }
3
4
template <class T>
5
using Fn = void (*)(T);
6
7
struct A
8
{
9
template <class T>
10
operator Fn<T>();
11
};
12
13
int main()
14
{
15
A()(42);
16
}