Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr65075.C
blob: 7d953ff64696613e99abfcda5211bf6404bfe06a [
file
] [
log
] [
blame
]
// PR c++/65075
// { dg-do compile { target c++11 } }
typedef
void
(*
E
)
();
template
<
class
T
>
constexpr
E
bar
(
bool
a
)
{
return
a
?
[]()
{}
:
[]()
{};
}
void
foo
()
{
(
bar
<int>
(
false
))
();
(
bar
<int>
(
true
))
();
}