diff options
author | David Krauss <potswa@mac.com> | 2011-06-10 05:18:36 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-06-10 01:18:36 -0400 |
commit | 6904f4b401d50c17b1a0dbd6eac64212700973fa (patch) | |
tree | cf32c9ad430552e602f47206b7f64bdc57c16863 /gcc/cp/decl2.c | |
parent | 0dbe3777353ae62281f913cfc5df518d1dce98c7 (diff) | |
download | gcc-6904f4b401d50c17b1a0dbd6eac64212700973fa.zip gcc-6904f4b401d50c17b1a0dbd6eac64212700973fa.tar.gz gcc-6904f4b401d50c17b1a0dbd6eac64212700973fa.tar.bz2 |
re PR c++/49118 (Endless operator-> chain causes infinite loop)
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.
From-SVN: r174889
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 a0512cd..8eee458 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; |