PR c++/88612 - ICE with -Waddress-of-packed-member.
authorMarek Polacek <polacek@redhat.com>
Wed, 2 Jan 2019 22:15:46 +0000 (22:15 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 2 Jan 2019 22:15:46 +0000 (22:15 +0000)
commit5b81a980e6949bfb826bf5f0da7180f1f8e559d4
tree37531a99dfa5813e8dab84c2803c1865a217bd4e
parentd4bf69750d31d08068f8242225b8fa06cdf11411
PR c++/88612 - ICE with -Waddress-of-packed-member.

* call.c (convert_for_arg_passing): Only give warnings with tf_warning.
* typeck.c (convert_for_assignment): Likewise.

* g++.dg/warn/Waddress-of-packed-member1.C: New test.

From-SVN: r267532
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Waddress-of-packed-member1.C [new file with mode: 0644]