Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-54002.C
blob: 125a18d8e9e457e5c103ac6ac6a6167def8b869a [
file
] [
log
] [
blame
]
// PR c++/54002
// { dg-do compile { target c++11 } }
class
C1
{
constexpr
static
int
foo
(
int
x
)
{
return
x
+
1
;
}
constexpr
static
int
bar
=
foo
(
sizeof
(
int
));
// { dg-error "constant expression" }
};