aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.def
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-08-27 14:48:12 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-08-27 14:48:12 -0700
commit42c244d8479bf2900995626586b8ec25b9b3eb5a (patch)
treef506b144421d7b9eb085b0ca871f275af2238424 /gcc/cp/cp-tree.def
parenta2fddff9be09cf004aa687e489d7ae04f237a901 (diff)
downloadgcc-42c244d8479bf2900995626586b8ec25b9b3eb5a.zip
gcc-42c244d8479bf2900995626586b8ec25b9b3eb5a.tar.gz
gcc-42c244d8479bf2900995626586b8ec25b9b3eb5a.tar.bz2
cp-tree.def (OFFSETOF_EXPR): New.
* cp-tree.def (OFFSETOF_EXPR): New. * parser.c (cp_parser_builtin_offsetof): Either built an OFFSETOF_EXPR, or call fold_offsetof immediately. * pt.c (tsubst_expr): Handle OFFSETOF_EXPR. From-SVN: r86679
Diffstat (limited to 'gcc/cp/cp-tree.def')
-rw-r--r--gcc/cp/cp-tree.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/cp-tree.def b/gcc/cp/cp-tree.def
index d3629fd..02afea9 100644
--- a/gcc/cp/cp-tree.def
+++ b/gcc/cp/cp-tree.def
@@ -282,6 +282,9 @@ DEFTREECODE (TAG_DEFN, "tag_defn", 'e', 0)
DEFTREECODE (TINST_LEVEL, "TINST_LEVEL", 'x', 0)
+/* Represents an 'offsetof' expression during template expansion. */
+DEFTREECODE (OFFSETOF_EXPR, "offsetof_expr", 'e', 1)
+
/*
Local variables:
mode:c