Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-default1.C
blob: 68d50b61b1206e5f540e743f2ad128843c561b47 [
file
] [
log
] [
blame
]
// PR c++/53464
// { dg-do compile { target c++11 } }
template
<
int
value
>
struct
bar
{
static
constexpr
int
get
()
{
return
value
;
}
};
template
<
typename
A
,
int
value
=
A
::
get
()>
struct
foo
{
};
int
main
()
{
typedef
foo
<
bar
<
0
>>
type
;
return
0
;
}