From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0E4093945C20; Wed, 2 Sep 2020 16:03:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0E4093945C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599062604; bh=Nt/IIMrzr96HotuHu2fyjp5lvBCbJm5RnYQHhuDysHA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=v+FK9IkGXcMbgme8I8GKgiAtXuw89PaFHnC6MHiu40002tHHN+jsJOAEZQhAzAexw TIKeeazEUbh1oLydN2aObjMAtRkK82MLRWH2wKt5sDx4j1/5KT/QZayF2c4Ozq1Jvu /Y6kR6FWGbdw31DTAs55R3XgQctW7K98G7BkQ7Wk= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60304] Including disables -Wconversion-null in C++ 98 mode Date: Wed, 02 Sep 2020 16:03:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 16:03:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60304 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #28 from Jonathan Wakely --- However, the preprocessed version doesn't warn even with current trunk: # 1 "b.C" # 1 "/home/jwakely/gcc/9/lib/gcc/x86_64-pc-linux-gnu/9.3.1/include/stdbool.= h" 1 3 4 # 2 "b.C" 2 int * foo() {return=20 # 2 "b.C" 3 4 false # 2 "b.C" ;} Dave, any idea why your fix for PR 71302 causes us to warn for the followin= g, but not when it's already been preprocessed (as above)? #include int* foo() {return false;} It's not a big deal, since we do issue the expected warning during normal compilation, and I'm going to try to remove the macros from any= way.=