re PR c++/91925 (-fpack-struct causes a decltype with template to ICE)
authorJakub Jelinek <jakub@redhat.com>
Tue, 1 Oct 2019 16:19:04 +0000 (18:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 1 Oct 2019 16:19:04 +0000 (18:19 +0200)
commit7552c36afa1f9058bb39f336ae84f019621885a0
tree3ec5a38c3f5514c422be560bab1c6dba4a5ef479
parent04bf300e86bc88617a709bebe29787f95aec59cc
re PR c++/91925 (-fpack-struct causes a decltype with template to ICE)

PR c++/91925
* c-warn.c (check_alignment_of_packed_member): Ignore FIELD_DECLs
with NULL DECL_FIELD_OFFSET.

* g++.dg/conversion/packed2.C: New test.

From-SVN: r276415
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/conversion/packed2.C [new file with mode: 0644]