cp-tree.h (LOOKUP_EXPLICIT_TMPL_ARGS): Define.
authorDiego Novillo <dnovillo@gcc.gnu.org>
Sat, 30 Apr 2011 15:20:58 +0000 (11:20 -0400)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Sat, 30 Apr 2011 15:20:58 +0000 (11:20 -0400)
commit2e1df0f00b8625beab3858201673d470cae65687
tree7aa7eeac01aeca9f7cfb044e6a3a9c7bfb45882c
parent9a4ac625f18628b863f6e58c0effd749039ff7a5
cp-tree.h (LOOKUP_EXPLICIT_TMPL_ARGS): Define.

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.

From-SVN: r173217
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