Re: [patch] Fix PR C++/82872

2017-12-21 Thread Jason Merrill
OK. On Thu, Dec 21, 2017 at 10:51 AM, Eric Botcazou wrote: > Hi, > > this is an ICE in the C++ FE on an offsetof construct with __PTRDIFF_MAX__ and > it happens only with this specific index: > > In file included from pr82872.c:4: > pr82872.c: In function 'size_t foo()': > pr82872.c:10:10: intern

[patch] Fix PR C++/82872

2017-12-21 Thread Eric Botcazou
Hi, this is an ICE in the C++ FE on an offsetof construct with __PTRDIFF_MAX__ and it happens only with this specific index: In file included from pr82872.c:4: pr82872.c: In function 'size_t foo()': pr82872.c:10:10: internal compiler error: in ignore_overflows, at cp/cvt.c:583 return offsetof