Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
cond2.C
blob: ec82dee10b7fef3bcf114ec84a896c25256ab1c3 [
file
] [
log
] [
blame
]
// PR c++/86205
// { dg-do compile { target c++11 } }
bool
b
;
template
<
class
T
>
int
f
()
{
return
0
;
}
template
<
class
T
>
auto
g
()
->
decltype
(
b
?
f
<
int
>
:
throw
0
)
{
return
b
?
f
<int>
:
throw
0
;
}