re PR c++/35316 (ICE with typeof/decltype and bit-fields)
authorJason Merrill <jason@redhat.com>
Tue, 22 Apr 2008 23:13:19 +0000 (19:13 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Apr 2008 23:13:19 +0000 (19:13 -0400)
commite76d7cc71d8a0f3c56c54bfa6ce754efe084a445
tree6e21f144d42f52be01beb15d01a5207a8fd9e9e1
parent63cb92c1ee60811725c0f0b2512e7edcded5c7d4
re PR c++/35316 (ICE with typeof/decltype and bit-fields)

        PR c++/35316
        * semantics.c (finish_decltype_type): Check DECL_BIT_FIELD_TYPE
        to see if DECL_BIT_FIELD_TYPE should be used, not some other flag.
        * typeck.c (is_bitfield_expr_with_lowered_type): Likewise.

From-SVN: r134571
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype11.C [new file with mode: 0644]