re PR c++/19618 (Do warn if a bit-field exceeds the size of a bool type)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 24 May 2013 17:37:41 +0000 (17:37 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 24 May 2013 17:37:41 +0000 (17:37 +0000)
commit7f5d76fb976770ec90deaf562ba7cf566bf9b0be
treed61337f07687efcd2340ad1335a2c5ee0514ab86
parent2343af65585862c38ab76e78387c2ae60c93f227
re PR c++/19618 (Do warn if a bit-field exceeds the size of a bool type)

/cp
2013-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/19618
* class.c (check_bitfield_decl): Warn for bool and enum bitfields
with width exceeding the type.

/testsuite
2013-05-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/19618
* g++.dg/expr/bitfield12.C: New.

From-SVN: r199306
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/bitfield12.C [new file with mode: 0644]