This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/57773] -Wpedantic incorrect warning for enum bit-field


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57773

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Jan  6 18:53:01 2014
New Revision: 206373

URL: http://gcc.gnu.org/viewcvs?rev=206373&root=gcc&view=rev
Log:
    PR c/57773
    * doc/implement-c.texi: Mention that other integer types are
    permitted as bit-field types in strictly conforming mode.
c/
    * c-decl.c (check_bitfield_type_and_width): Warn for implementation
    defined bit-field types only in ISO C.
testsuite/
    * gcc.dg/pr57773.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr57773.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-decl.c
    trunk/gcc/doc/implement-c.texi
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]