[Bug c++/65327] GCC rejects "constexpr volatile int i = 5;"
yaghmour.shafik at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 5 18:49:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65327
Shafik Yaghmour <yaghmour.shafik at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yaghmour.shafik at gmail dot com
--- Comment #1 from Shafik Yaghmour <yaghmour.shafik at gmail dot com> ---
Defect report 1688:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4093.html#1688
confirms that this is valid, and it says:
"The combination is intentionally permitted and could be used in some
circumstances to force constant initialization."
More information about the Gcc-bugs
mailing list