mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 20:01:31 -05:00
PR c++/51489 * constexpr.c (cxx_eval_binary_expression): Don't VERIFY_CONSTANT the operands. From-SVN: r233878
13 lines
195 B
C
13 lines
195 B
C
// { dg-do compile { target c++14 } }
|
|
|
|
constexpr bool g()
|
|
{
|
|
int ar[4] = { 1, 2, 3, 4 };
|
|
auto e1 = ar;
|
|
auto e4 = ar+3;
|
|
return (e4-e1) == 3;
|
|
}
|
|
|
|
#define SA(X) static_assert((X),#X)
|
|
SA(g());
|