diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-28 22:35:50 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-05-28 22:35:50 +0000 |
commit | a133b234d21c1c2be38d3b5539177289914a21f5 (patch) | |
tree | d7752dce6835b6a0c7641ac819b1894315e25a16 /gcc/cp/name-lookup.c | |
parent | 52401a44fb50829b79b04b677866cec680d94024 (diff) | |
download | gcc-a133b234d21c1c2be38d3b5539177289914a21f5.tar.gz |
PR c++/15083
* decl2.c (delete_sanity): Set TREE_SIDE_EFFECTS on a DELETE_EXPR,
even in a templat.e
* init.c (build_new): Likewise.
PR c++/15640
* name-lookup.c (arg_assoc): Robustify.
PR c++/15471
* typeck.c (unary_complex_lvalue): Use context_for_name_lookup
when determining the scope to use for a pointer to member.
PR c++/15083
* g++.dg/warn/noeffect5.C: New test.
PR c++/15471
* g++.dg/expr/ptrmem4.C: New test.
PR c++/15640
* g++.dg/template/operator3.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82391 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r-- | gcc/cp/name-lookup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index ad8003da91b..30a4d7efba8 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -4464,10 +4464,8 @@ arg_assoc (struct arg_lookup *k, tree n) if (arg_assoc_template_arg (k, TREE_VEC_ELT (args, ix)) == 1) return true; } - else + else if (TREE_CODE (n) == OVERLOAD) { - my_friendly_assert (TREE_CODE (n) == OVERLOAD, 980715); - for (; n; n = OVL_CHAIN (n)) if (arg_assoc_type (k, TREE_TYPE (OVL_FUNCTION (n)))) return true; |