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