Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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
))
();
}