aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@markmitchell.com>1998-08-28 15:43:58 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-08-28 15:43:58 +0000
commit079e1098abe30722bb612e4b3bc673e969f0c72d (patch)
tree01906c60f2f79be105f47fb3279d31cbf6f01a9a /gcc/expr.c
parentec8b2a13642c7b6b75f6a949776076f1c1c879c6 (diff)
downloadgcc-079e1098abe30722bb612e4b3bc673e969f0c72d.zip
gcc-079e1098abe30722bb612e4b3bc673e969f0c72d.tar.gz
gcc-079e1098abe30722bb612e4b3bc673e969f0c72d.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: r22060
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions