re PR c++/16169 (-Weffc++ item 15 improvements)
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 8 Jul 2004 10:03:59 +0000 (10:03 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Thu, 8 Jul 2004 10:03:59 +0000 (10:03 +0000)
commit47293da3149269ec799f05bc446aeb7ca0133cb3
treed6a518fc3bf2f568debfc19d1f6f5586cca06105
parent70ce47b582454762c68f9ef7c63ce147d95eae02
re PR c++/16169 (-Weffc++ item 15 improvements)

PR c++/16169
* typeck.c (check_return_expr): Improve -Weffc++ warning: handle
returning CALL_EXPR, and non-reference return type.

PR c++/16169
* g++.dg/warn/effc2.C: New test.

From-SVN: r84283
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/effc2.C [new file with mode: 0644]