* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ptrsub.C
blob6c7dc302e31af875043957e30a018d66d7fc84c3
1 // PR c++/51489
2 // DR 1313
3 // { dg-do compile { target c++11 } }
5 struct array
7   constexpr array() :x(0) {}
8   constexpr int const* begin() const { return &x; }
9   int x;
11 constexpr array aa;
12 constexpr auto b = aa.begin();
13 static_assert(b-b == 0, "compiles just fine");
14 static_assert(aa.begin()-aa.begin() == 0, "compiler thinks it's not a constant expression");