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++/37348] [4.2/4.3/4.4 Regression] internal compiler error: tree check: expected var_decl, have field_decl in cp_finish_decl, at cp/decl.c:5461



------- Comment #4 from jakub at gcc dot gnu dot org  2008-09-03 20:40 -------
Subject: Bug 37348

Author: jakub
Date: Wed Sep  3 20:38:38 2008
New Revision: 139957

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139957
Log:
        PR c++/37348
        * decl.c (cp_finish_decl): Only set
        DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P if decl is VAR_DECL.

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

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/parse/crash45.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=37348


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