aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.def
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@gcc.gnu.org>2003-08-15 12:15:56 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-08-15 12:15:56 +0000
commit018a580308bf68eb3889f8663a68631cab4a9018 (patch)
treef08e3f3d65f8e968a130bf44f5ed1e8d64795de2 /gcc/cp/cp-tree.def
parent6cad4e1709ec73b0c7978e5fab9ed623b7ac043b (diff)
downloadgcc-018a580308bf68eb3889f8663a68631cab4a9018.zip
gcc-018a580308bf68eb3889f8663a68631cab4a9018.tar.gz
gcc-018a580308bf68eb3889f8663a68631cab4a9018.tar.bz2
cp-tree.def (NON_DEPENDENT_EXPR): Add operand.
* cp-tree.def (NON_DEPENDENT_EXPR): Add operand. * decl2.c (build_offset_ref_call_from_tree): Use build_non_dependent_expr. * error.c (dump_expr) <NON_DEPENDENT_EXPR case>: Dump the operand. * pt.c (build_non_dependent_expr): Set operand. From-SVN: r70478
Diffstat (limited to 'gcc/cp/cp-tree.def')
-rw-r--r--gcc/cp/cp-tree.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def
index a5fa243..36b7aaa 100644
--- a/gcc/cp/cp-tree.def
+++ b/gcc/cp/cp-tree.def
@@ -240,8 +240,9 @@ DEFTREECODE (PSEUDO_DTOR_EXPR, "pseudo_dtor_expr", 'e', 3)
modify the original expression, which would change the mangling of
that expression if it appeared in a template argument list. In
that situation, we create a NON_DEPENDENT_EXPR to take the place of
- the original expression. */
-DEFTREECODE (NON_DEPENDENT_EXPR, "non_dependent_expr", 'e', 0)
+ the original expression. The expression is the only operand -- it
+ is only needed for diagnostics. */
+DEFTREECODE (NON_DEPENDENT_EXPR, "non_dependent_expr", 'e', 1)
/* CTOR_INITIALIZER is a placeholder in template code for a call to
setup_vtbl_pointer (and appears in all functions, not just ctors). */