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++/37389] [4.2/4.3 Regression] expected integer_cst, have error_mark in build_enumerator



------- Comment #5 from jakub at gcc dot gnu dot org  2008-09-09 20:24 -------
Subject: Bug 37389

Author: jakub
Date: Tue Sep  9 20:23:08 2008
New Revision: 140171

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140171
Log:
        PR c++/37389
        * decl.c (build_enumerator): Handle previous value's DECL_INITIAL
        being error_operand_p.

        * g++.dg/parse/enum4.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/enum4.C
Modified:
    branches/gcc-4_3-branch/gcc/cp/ChangeLog
    branches/gcc-4_3-branch/gcc/cp/decl.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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


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