re PR c++/89481 (constexpr function allows writing one active union member and reading another)
PR c++/89481 * constexpr.c (cxx_eval_store_expression): When changing active union member, set no_zero_init. * g++.dg/cpp1y/constexpr-89481.C: New test. From-SVN: r269213
Showing
gcc/testsuite/g++.dg/cpp1y/constexpr-89481.C
0 → 100644
Please
register
or
sign in
to comment