Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-template3.C
blob: f0ac2224af5b3c95aa8d2c7129953a5403a003d6 [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
constexpr
operator
int
()
{
return
42
;
}
};
template
<
class
T
>
struct
B
{
static
const
int
versionConst
=
A
();
enum
{
versionEnum
=
versionConst
};
};