constexpr-volatile2.C
385 Bytes
-
PR c++/86608 - reading constexpr volatile variable. · 3c393a2c
* constexpr.c (potential_constant_expression_1): Check want_rval instead of checking if we have a decl. * decl2.c (decl_maybe_constant_var_p): Don't consider volatile constexpr variables as maybe constant. * g++.dg/cpp0x/constexpr-volatile2.C: New test. * g++.dg/cpp0x/pr65327.C: Add dg-error. From-SVN: r267030
Marek Polacek committed