repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr65075.C
blob
7d953ff64696613e99abfcda5211bf6404bfe06a
1
// PR c++/65075
2
// { dg-do compile { target c++11 } }
3
4
typedef void (*E) ();
5
template <class T>
6
constexpr E
7
bar (bool a)
8
{
9
return a ? []() {} : []() {};
10
}
11
12
void
13
foo ()
14
{
15
(bar<int> (false)) ();
16
(bar<int> (true)) ();
17
}