re PR c++/28053 (ICE deriving from class with invalid bitfield)
authorLee Millward <lee.millward@codesourcery.com>
Fri, 20 Oct 2006 20:13:42 +0000 (20:13 +0000)
committerLee Millward <lmillward@gcc.gnu.org>
Fri, 20 Oct 2006 20:13:42 +0000 (20:13 +0000)
commit4c9fb8704ae3893ac39729e9713f8046fac6e1d7
treec490295d80e90317c5432e6da339f8379c7bf200
parent5d7adf7a1573b3ab23d9a2d70fbf30a8ef0c4958
re PR c++/28053 (ICE deriving from class with invalid bitfield)

        PR c++/28053
        * decl2.c (grokbitfield): Detect invalid non-integral
        types earlier when possible.

        * g++.dg/parse/bitfield1.C: Adjust error markers.
        * g++.dg/parse/bitfield2.C: New test.

Co-Authored-By: Mark Mitchell <mark@codesourcery.com>
From-SVN: r117910
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/bitfield1.C
gcc/testsuite/g++.dg/parse/bitfield2.C [new file with mode: 0644]