aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorDavid Krauss <potswa@mac.com>2011-06-10 05:18:36 +0000
committerJason Merrill <jason@gcc.gnu.org>2011-06-10 01:18:36 -0400
commit6904f4b401d50c17b1a0dbd6eac64212700973fa (patch)
treecf32c9ad430552e602f47206b7f64bdc57c16863 /gcc/cp/pt.c
parent0dbe3777353ae62281f913cfc5df518d1dce98c7 (diff)
downloadgcc-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/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index ac150ce..814a08f 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -12753,7 +12753,7 @@ tsubst_copy_and_build (tree t,
(TREE_NO_WARNING (TREE_OPERAND (t, 1))
? ERROR_MARK
: TREE_CODE (TREE_OPERAND (t, 1))),
- /*overloaded_p=*/NULL,
+ /*overload=*/NULL,
complain);
case SCOPE_REF: