re PR c/80919 (ICE: Segmentation fault with -Wall when printing address of size 0...
authorMarek Polacek <polacek@redhat.com>
Sun, 4 Jun 2017 17:27:22 +0000 (17:27 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sun, 4 Jun 2017 17:27:22 +0000 (17:27 +0000)
commit3de4ac6d80c8ae24b58586003aded178d7ec8453
tree6ba4790c15c824ab581b92a674b84f3d2c013668
parent1bfb5860cf635ac4226cd6355360da77b2ba90a2
re PR c/80919 (ICE: Segmentation fault with -Wall when printing address of size 0 array)

PR c/80919
* c-format.c (matching_type_p): Return false if any of the types
requires structural equality.

* gcc.dg/format/pr80919.c: New test.

From-SVN: r248860
gcc/c-family/ChangeLog
gcc/c-family/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/pr80919.c [new file with mode: 0644]