diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 05:18:36 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-10 05:18:36 +0000 |
commit | 9951fe5d14cf1fcd66dd59729e593c90fdcfaa12 (patch) | |
tree | cf32c9ad430552e602f47206b7f64bdc57c16863 /gcc/cp/decl2.c | |
parent | f47c92b28ff374dc352ae5e64d42eb3a5d1b3313 (diff) | |
download | gcc-9951fe5d14cf1fcd66dd59729e593c90fdcfaa12.tar.gz |
PR c++/49118
* typeck2.c (build_x_arrow): Push fake template context
to produce diagnostic on acyclic endless operator-> drill-down.
* call.c (build_new_op): Change Boolean overload status
value to a pointer to the overload function.
* cp-tree.h: Likewise.
* typeck.c: Likewise.
* parser.c: Likewise.
* decl2.c: Likewise.
* pt.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174889 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index a0512cdcab2..8eee4588198 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -361,7 +361,7 @@ grok_array_decl (tree array_expr, tree index_exp) if (MAYBE_CLASS_TYPE_P (type) || MAYBE_CLASS_TYPE_P (TREE_TYPE (index_exp))) expr = build_new_op (ARRAY_REF, LOOKUP_NORMAL, array_expr, index_exp, NULL_TREE, - /*overloaded_p=*/NULL, tf_warning_or_error); + /*overload=*/NULL, tf_warning_or_error); else { tree p1, p2, i1, i2; |