From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3C3D3887027; Mon, 13 Apr 2020 21:00:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3C3D3887027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586811656; bh=qC5sR3hcKfvz+726qL6bXqlPClP1sFbB5sxjcXFJKos=; h=From:To:Subject:Date:In-Reply-To:References:From; b=G8cp8gcrM/G39Ij8o2FkTtnHgmzMLo2NdPY+MLM4AtaURT5iFYzwyWSK/FRDrbYwx Do6zw5Cyd+fSSDUletg16350kAa61DvcAgDfhaFJzGm05n6hU7etbunP/OCrIrMTpE Cx3Bbb5iZ2RqDs/2yh4u1XVDWNeXb34iTAeZMS0E= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/83028] Incorrect -Wsequence-point warning in correct C++17 code with new evaluation order rules Date: Mon, 13 Apr 2020 21:00:56 +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: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor 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 cf_reconfirmed_on bug_status everconfirmed 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: Mon, 13 Apr 2020 21:00:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83028 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org Last reconfirmed| |2020-04-13 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Confirmed. Unless the C++ 2a standard defines behavior in all cases issuing the warning for both valid (in C++ 2a) and invalid code code on the bases t= hat it's invalid in some other standard or language, and without distinguishing between the valid uses from the invalid ones, would make the warning meaningless. At a minimum, the warning should be split into two: one for portability to other standards/languages, and another for problems in C++ 2= a.=