Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-95307.C
blob: bd3c6a8f91f1293ead1dc338b178fea7a0fcee3e [
file
] [
log
] [
blame
]
// PR c++/95307
// { dg-do compile { target c++11 } }
int
v
;
constexpr
auto
p
{
reinterpret_cast
<
__UINTPTR_TYPE__
>(&
v
)
-
1u
};
// { dg-error "conversion from pointer type" }