PR middle-end/98160 - ICE in warn_dealloc_offset on member placement new and delete
authorMartin Sebor <msebor@redhat.com>
Wed, 23 Dec 2020 23:34:12 +0000 (16:34 -0700)
committerMartin Sebor <msebor@redhat.com>
Wed, 23 Dec 2020 23:38:18 +0000 (16:38 -0700)
commit0df311657dc8c2a7f6ce3464c9d9ae5d5033840c
tree4a2119942f2ded72bcc6080776e8320ecb18ab45
parentfdd8560cce9f10fe5dcd26483440be136b81701d
PR middle-end/98160 - ICE in warn_dealloc_offset on member placement new and delete

gcc/ChangeLog:

PR middle-end/98160
* builtins.c (warn_dealloc_offset): Avoid assuming calls are made
through declared functions and not pointers.

gcc/testsuite/ChangeLog:

PR middle-end/98160
* g++.dg/warn/pr98160.C: New test.
gcc/builtins.c
gcc/testsuite/g++.dg/warn/pr98160.C [new file with mode: 0644]