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/30260] Enumeration types and enumeration constants erroneously given unsigned types



------- Comment #8 from manu at gcc dot gnu dot org  2008-10-19 13:53 -------
Subject: Bug 30260

Author: manu
Date: Sun Oct 19 13:52:10 2008
New Revision: 141224

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141224
Log:
2008-10-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>

        PR c/30260
        * c-decl.c (finish_enum): Convert non-integer enumerators to enum
        type.
        (build_enumerator): Convert enumerators that fit in integer to
        integer type.
testsuite/
        * gcc.dg/pr30260.c: New.

Added:
    trunk/gcc/testsuite/gcc.dg/pr30260.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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