cp/ChangeLog
commit822dd80c021351dbde6628f1a9d92f94da4a2f77
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Apr 2011 15:20:58 +0000 (30 15:20 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Apr 2011 15:20:58 +0000 (30 15:20 +0000)
tree7aa7eeac01aeca9f7cfb044e6a3a9c7bfb45882c
parent6f60f0b6c6fb72967889f6a3e7a5ce20c325733b
cp/ChangeLog
2011-04-29  Le-Chun Wu  <lcwu@google.com>

* cp-tree.h (LOOKUP_EXPLICIT_TMPL_ARGS): Define.
* call.c (build_new_function_call): Set it for TEMPLATE_ID_EXPRs.
(build_over_call): Use it to determine whether to emit a NULL
warning for template function instantiations.
(build_new_method_call): Set LOOKUP_EXPLICIT_TMPL_ARGS if
EXPLICIT_TARGS is set.

2011-04-29  Diego Novillo  <dnovillo@google.com>
    Le-Chun Wu  <lcwu@google.com>

* call.c (conversion_null_warnings): Also handle assignments
when warning about NULL conversions.

testsuite/ChangeLog
2011-04-29  Le-Chun Wu  <lcwu@google.com>

* g++.dg/warn/Wnull-conversion-1.C: New.
* g++.dg/warn/Wnull-conversion-2.C: New.

2011-04-29  Le-Chun Wu  <lcwu@google.com>

* g++.dg/warn/Wconversion-null-2.C: Do not expect a NULL
  warning in implicitly instantiated templates.

2011-04-29  Diego Novillo  <dnovillo@google.com>

* g++.old-deja/g++.other/null3.C: Expect warning about converting
boolean to a pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173217 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wconversion-null-2.C
gcc/testsuite/g++.dg/warn/Wnull-conversion-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/Wnull-conversion-2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.other/null3.C