[Bug c++/82872] [6/7/8 Regression] ICE in ignore_overflows on __PTRDIFF_MAX__ index

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 7 07:21:00 GMT 2017


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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-11-07
            Summary|[6/7/8 Regression] ICE in   |[6/7/8 Regression] ICE in
                   |ignore_overflows on an      |ignore_overflows on
                   |out-of-bounds index in      |__PTRDIFF_MAX__ index
                   |constexpr                   |
     Ever confirmed|0                           |1
           Severity|normal                      |minor

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Nothing to do with constexpr though:

#include <stddef.h>

int f (void)
{
  struct S { int i, a[1]; };

  return offsetof (struct S, a[__PTRDIFF_MAX__]);
}

fails the same way.  Priority epsilon since only happens for __PTRDIFF_MAX__.


More information about the Gcc-bugs mailing list