2013-11-10 Paolo Carlini <paolo.carlini@oracle.com>
commit106c3d67d09f93142fbcc2507b54790c8b38c656
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Nov 2013 23:40:57 +0000 (10 23:40 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 10 Nov 2013 23:40:57 +0000 (10 23:40 +0000)
treeb7a1fda6293692106c060179365c03b8f2af725b
parent544db64f1b123e87d643578cd9362d4ef847cee4
2013-11-10  Paolo Carlini  <paolo.carlini@oracle.com>

* cvt.c (cp_convert_to_pointer): Call build_ptrmemfunc before
maybe_warn_zero_as_null_pointer_constant to avoid duplicate
-Wzero-as-null-pointer-constant diagnostics.

* typeck.c (build_ptrmemfunc): Use cp_build_c_cast.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204655 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/cvt.c
gcc/cp/typeck.c