re PR c++/89599 (C-style function-pointer-to-void* cast is handled inconsistently)
PR c++/89599 * constexpr.c (potential_constant_expression_1): Reject REINTERPRET_CAST_P NOP_EXPRs. * g++.dg/ubsan/vptr-4.C: Adjust expected diagnostics. * g++.dg/parse/array-size2.C: Likewise. * g++.dg/cpp0x/constexpr-89599.C: New test. From-SVN: r269482
Showing
gcc/testsuite/g++.dg/cpp0x/constexpr-89599.C
0 → 100644
Please
register
or
sign in
to comment