diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1996-12-18 02:46:25 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1996-12-18 02:46:25 +0000 |
commit | d2e5ee5c704b81a8857f6068a785a4e056b8eafa (patch) | |
tree | 8756793fee8ba11b6c6e2195d2a9521061792978 /gcc/cp/typeck2.c | |
parent | f442f7234e0059d1273207752894ef364cd6078c (diff) | |
download | gcc-d2e5ee5c704b81a8857f6068a785a4e056b8eafa.zip gcc-d2e5ee5c704b81a8857f6068a785a4e056b8eafa.tar.gz gcc-d2e5ee5c704b81a8857f6068a785a4e056b8eafa.tar.bz2 |
90th Cygnus<->FSF quick merge
From-SVN: r13321
Diffstat (limited to 'gcc/cp/typeck2.c')
-rw-r--r-- | gcc/cp/typeck2.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 8c7604f..e6f765e 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1377,7 +1377,10 @@ build_m_component_ref (datum, component) else if (binfo == error_mark_node) return error_mark_node; - return build (OFFSET_REF, rettype, datum, component); + component = build (OFFSET_REF, rettype, datum, component); + if (TREE_CODE (type) == OFFSET_TYPE) + component = resolve_offset_ref (component); + return component; } /* Return a tree node for the expression TYPENAME '(' PARMS ')'. */ |