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

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Aug 16 09:49:00 GMT 2013


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Indeed, I was about to point out that the testcase really is just:

  static_assert( (-1) % 5  == -1, "" );
  static_assert( (-1) % 5u != -1, "" );



More information about the Gcc-bugs mailing list