Hi,
On 11/04/2018 17:57, Jakub Jelinek wrote:
On Tue, Apr 10, 2018 at 08:57:22PM +0200, Paolo Carlini wrote:
2018-04-10 Paolo Carlini
PR c++/70808
* g++.dg/warn/Wzero-as-null-pointer-constant-7.C: New.
The testcase FAILs in -std=c++98 mode for obvious reasons.
Indeed, thank
On Tue, Apr 10, 2018 at 08:57:22PM +0200, Paolo Carlini wrote:
> 2018-04-10 Paolo Carlini
>
> PR c++/70808
> * g++.dg/warn/Wzero-as-null-pointer-constant-7.C: New.
The testcase FAILs in -std=c++98 mode for obvious reasons.
I've committed following after testing it with
make check-
OK.
On Tue, Apr 10, 2018 at 2:57 PM, Paolo Carlini wrote:
> Hi,
>
> this isn't a regression, but deciding what we want to do should be easy and
> quick enough. The issue is that "mysteriously" we warn
> -Wzero-as-null-pointer-constant for:
>
> decltype( nullptr ) warn = {};
>
> and we don't for:
Hi,
this isn't a regression, but deciding what we want to do should be easy
and quick enough. The issue is that "mysteriously" we warn
-Wzero-as-null-pointer-constant for:
decltype( nullptr ) warn = {};
and we don't for:
int* no_warn = {};
That's easily explained given the code we have in