[Bug c++/58173] [C++11] Bad interaction between sizeof... and remainder (%) operators

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 16 09:43:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58173

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't think this is a bug.  sizeof... has type std::size_t, and while
(-1) % 5 is -1, (-1) % 5UL is 0.



More information about the Gcc-bugs mailing list