On Wed, May 30, 2018 at 3:00 PM, Ville Voutilainen <ville.voutilai...@gmail.com> wrote: > On 30 May 2018 at 18:32, Ville Voutilainen <ville.voutilai...@gmail.com> > wrote: >> Now it does. This passes all the Wzero-as-null-pointer-constant tests in >> warn/ >> and cpp0x/, running full suite on Linux-PPC64. Ok for trunk if the tests >> pass? > > Here we go again. :) > > + && (TYPE_PTRMEMFUNC_P (totype) || TYPE_PTRDATAMEM_P (totype) > + || TYPE_PTR_P (totype) || NULLPTR_TYPE_P (totype)))
You could use TYPE_PTR_OR_PTRMEM_P here. OK with that change. Jason