PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
authorMarek Polacek <polacek@redhat.com>
Fri, 5 Apr 2019 14:56:53 +0000 (14:56 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 5 Apr 2019 14:56:53 +0000 (14:56 +0000)
commit05564120c6b6e3850faa3586824c298f76cc3985
treeba3bac0f85dc21bff732a291433b6dc787c55504
parent25eafae67f186cfa4c0fd0f89f743d7707d5bf21
PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.

PR c++/89973 - -Waddress-of-packed-member ICE with invalid conversion.
* c-warn.c (check_address_or_pointer_of_packed_member): Check the type
of RHS.

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

From-SVN: r270166
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Waddress-of-packed-member2.C [new file with mode: 0644]