aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1998-08-28 17:02:44 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-08-28 17:02:44 +0000
commit818c8883753d6c2224145418f9f1f0764c999e2a (patch)
treeb84712d6336bb7de824c18ddcf200ccf13126822 /gcc/expr.c
parent541be14b8aabcb759e6670bcaf49c3a0d705a30c (diff)
downloadgcc-818c8883753d6c2224145418f9f1f0764c999e2a.zip
gcc-818c8883753d6c2224145418f9f1f0764c999e2a.tar.gz
gcc-818c8883753d6c2224145418f9f1f0764c999e2a.tar.bz2
cp-tree.h (build_enumerator): Take the enumeration type as a paramter.
* cp-tree.h (build_enumerator): Take the enumeration type as a paramter. * decl.c (finish_enum): Don't set the TREE_TYPE for the enumeration constant values if we're processing_template_decls. Don't set the type for the CONST_DECLs either; that's done in build_enumerator. ( (build_enumerator): Take the enumeration type as a paramter. * lex.c (do_identifier): Don't resolve enumeration constants while processing template declarations, even if they happen to be TEMPLATE_PARM_INDEXs. * parse.y (current_enum_type): New variable. (primary): Don't allow statement-expression in local classes just as we don't in global classes. (structsp): Use current_enum_type. (enum_list): Likewise. * pt.c (tsubst_enum): Don't check for NOP_EXPRs introduced by finish_enum; they no longer occur. From-SVN: r22063
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions