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