Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-static6.C
blob: 78065c3068b0cc2f87de0d62ad346f4b49b28788 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
B
{
constexpr
operator
int
()
{
return
4
;
}
};
template
<
int
I
>
struct
C
;
template
<>
struct
C
<
4
>
{
typedef
int
TP
;
};
template
<
class
T
>
struct
A
{
constexpr
static
B t
=
B
();
C
<t>
::
TP tp
;
};
A
<
B
>
a
;