[Bug c++/68979] [6 Regression] error: left operand of shift expression ‘?=(-1 << 4)=?UTF-8?Q?’ is negative

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 18 12:52:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68979

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Why do you think this is a bug?  Note that -1 << 4 is rejected in a context
where an integer constant expression is required only in C++11/14.


More information about the Gcc-bugs mailing list