diff options
| author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-27 23:47:42 +0000 |
|---|---|---|
| committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-10-27 23:47:42 +0000 |
| commit | 0b43fa8edb1d421ef75d8564b8cb22549d3dbdda (patch) | |
| tree | b2d4edeb25133dd9406454b8da14ade8f20a818c /gcc | |
| parent | 06838c8d62ec0b200d938a590f2e946b9da24b58 (diff) | |
| download | ppe42-gcc-0b43fa8edb1d421ef75d8564b8cb22549d3dbdda.tar.gz ppe42-gcc-0b43fa8edb1d421ef75d8564b8cb22549d3dbdda.zip | |
* lex.c (do_identifier): Also generate LOOKUP_EXPR for RESULT_DECL.
* method.c (hack_identifier): Also check for using RESULT_DECL
from outer context.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23381 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/cp/lex.c | 1 | ||||
| -rw-r--r-- | gcc/cp/method.c | 3 |
3 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 365dc2bc17a..328039aaec2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +1998-10-27 Jason Merrill <jason@yorick.cygnus.com> + + * lex.c (do_identifier): Also generate LOOKUP_EXPR for RESULT_DECL. + * method.c (hack_identifier): Also check for using RESULT_DECL + from outer context. + 1998-10-27 Mark Mitchell <mark@markmitchell.com> * decl.c (grokdeclarator): Use type_quals, rather than constp, diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index e0816633185..30c70489abc 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -3070,6 +3070,7 @@ do_identifier (token, parsing, args) && CP_DECL_CONTEXT (id) && TREE_CODE (CP_DECL_CONTEXT (id)) == FUNCTION_DECL) || TREE_CODE (id) == PARM_DECL + || TREE_CODE (id) == RESULT_DECL || TREE_CODE (id) == USING_DECL)) id = build_min_nt (LOOKUP_EXPR, token); diff --git a/gcc/cp/method.c b/gcc/cp/method.c index f738124117f..ee0185b761b 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1924,7 +1924,8 @@ hack_identifier (value, name) else mark_used (value); - if (TREE_CODE (value) == VAR_DECL || TREE_CODE (value) == PARM_DECL) + if (TREE_CODE (value) == VAR_DECL || TREE_CODE (value) == PARM_DECL + || TREE_CODE (value) == RESULT_DECL) { tree context = decl_function_context (value); if (context != NULL_TREE && context != current_function_decl |

