re PR c++/15083 (spurious "statement has no effect" warning)
authorMark Mitchell <mark@codesourcery.com>
Fri, 28 May 2004 22:35:50 +0000 (22:35 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 May 2004 22:35:50 +0000 (22:35 +0000)
commitc1cca8d4eb0613a59efae32be160a5d907a9f757
treed7752dce6835b6a0c7641ac819b1894315e25a16
parent763ee179ed8e563ffb863f8977d9c5a31cdbf0a9
re PR c++/15083 (spurious "statement has no effect" warning)

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.

From-SVN: r82391
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/init.c
gcc/cp/name-lookup.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/expr/ptrmem4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/operator3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/noeffect6.C [new file with mode: 0644]