Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-typedef1.C
blob: 98c2309abb681166f1658c02c0c9380189746bac [
file
] [
log
] [
blame
]
// PR c++/50508
// { dg-do compile { target c++11 } }
template
<
class
T
>
struct
integral_constant
{
typedef
T value_type
;
constexpr
operator
value_type
()
{
return
true
;
}
};
static
constexpr
bool
value
=
integral_constant
<bool>
()
&&
true
;