Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype69.C
blob: 849a244696523e905e68e0f76a4e50adf1e37cf6 [
file
] [
log
] [
blame
]
// PR c++/89356
// { dg-do compile { target c++11 } }
typedef
unsigned
a
;
template
<typename>
struct
h
{};
template
<
int
,
class
b
>
auto
c
(
b f
)
->
h
<
decltype
(
f
(
a
{
0
}))>;
typedef
char
byte
;
enum
d
:
byte
;
d g
(
byte
);
h
<d>
e
=
c
<
6
>(
g
);