☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-54002.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-54002.C
code
plain
raw
1
// PR c++/54002
2
// { dg-do compile { target c++11 } }
3
4
class C1 {
5
constexpr static int foo(int x) { return x + 1; }
6
constexpr static int bar = foo(sizeof(int)); // { dg-error "constant expression" }
7
};