From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 887363858D28; Wed, 25 Jan 2023 12:31:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 887363858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674649861; bh=/bb6o1b3YV1fgEtJgj3WGmsFgFlqzG0Ke3BbfaCo1dA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C9IQbqlVFIQFsibsoaVbLgJwNudXCQjnOSIwtYBbLq7KWTYUq6ZGFlo5VIySbxoZQ 2pvxuow7dX1+kguibVRQpEch8j3An/Pd6VlWwVWqYK2cr9ID/99i9KELIx1mn6ZzcQ Lp0EYdJKOK89wvCZZiNgTrUMiJMj1Qc1OoeDC8Z8= From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/108538] unexpected -Wnarrowing errors in -fpermissive mode Date: Wed, 25 Jan 2023 12:31:01 +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: 12.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108538 --- Comment #1 from Andreas Schwab --- It depends on the selected C++ standard. C++11 does not allow narrowing conversions unconditionally.=