PR c++/98413 - ICE on placement new and member pointer
authorMartin Sebor <msebor@redhat.com>
Wed, 23 Dec 2020 23:28:06 +0000 (16:28 -0700)
committerMartin Sebor <msebor@redhat.com>
Wed, 23 Dec 2020 23:36:47 +0000 (16:36 -0700)
commitfdd8560cce9f10fe5dcd26483440be136b81701d
tree9aeb0396d0788c3b36c78b9b0b30051087d27e1b
parenteb81c997d81033407576a2376b6ce24b0646d3a1
PR c++/98413 - ICE on placement new and member pointer

gcc/ChangeLog:

PR c++/98413
* builtins.c (get_offset_range): Avoid non-integers/-pointers.

gcc/testsuite/ChangeLog:

PR c++/98413
* g++.dg/warn/pr98413.C: New test.
gcc/builtins.c
gcc/testsuite/g++.dg/warn/pr98413.C [new file with mode: 0644]