https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387
--- Comment #6 from jamespharvey20 at gmail dot com ---
This fix introduces bug 87672.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387
--- Comment #4 from Jeffrey A. Law ---
Author: law
Date: Tue Sep 25 22:17:45 2018
New Revision: 264585
URL: https://gcc.gnu.org/viewcvs?rev=264585=gcc=rev
Log:
PR c/87387
* builtins.c (unterminated_array): Simplify.
*
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387
Jeffrey A. Law changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387
--- Comment #2 from David Binderman ---
Looks like an old implementation:
https://gcc.gnu.org/ml/gcc-patches/2010-06/msg02390.html
It might be worth using this as a starting point.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87387
--- Comment #1 from David Binderman ---
I found this bug by compiling gcc with the new clang 7.0
It seems that gcc can't be encouraged to warn about self-assignment.
For example:
$cat sep23a.cc
// -Wself-assign. clang has it. gcc doesn't.