From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80E8F385B835; Sat, 18 Apr 2020 18:25:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80E8F385B835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587234352; bh=S73iTWc7omfha5HLQZpvqSb5zLstGF38+NYFrw3syx0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IWhaetK1iWHQDhd9Icw3c1Is2Heaiwh45s2Uf+58EviiPUeBwijdNWqZvZLkwpKTb 7vxFbqKp1BBjHaWBtB3bYMw1rw7hz5a73CDbV3PKcAdQD4rcNoe7YYMJXx93Skbb86 I2lT2owNRdUzR97ePZgn4451FB9KsQcxxoVgu1zc= From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94025] Expected-to-fail compilation goes through by not detecting mutable-specifier on lambda Date: Sat, 18 Apr 2020 18:25:52 +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: 10.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com 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: 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: Sat, 18 Apr 2020 18:25:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94025 --- Comment #2 from Daniel Kr=C3=BCgler --- (In reply to Daniel Kr=C3=BCgler from comment #1) [..] > I'm surprised that the Visual Studio compiler (I tested 2019) rejects the > original example, this looks like a bug to me, especially since that > compiler also handles the call resolution for the above defined Lambda ty= pe > correctly. I plan to report an issue for that compiler. I have opened a corresponding bug report against the VS 2019 compiler: https://developercommunity.visualstudio.com/content/problem/990374/conversi= on-function-to-function-pointer-for-mutabl-1.html=