From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F15B3386181A; Mon, 27 Jul 2020 07:40:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F15B3386181A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595835637; bh=poTJDqppe+G9eByE9lvlyz7Lj+AoeRKcVJghStwoOWc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rNSPhOmLeVCw46gewLhhCN5XdW9DudVmcekIMbViVKREAPfOMVVc5kcU4FeiApjnE 5bXKzx7VqO2Sq1r9yqZI3/DNAadcsD1/iUA9u+CkljUW5Vns73JU1Co52O96Fnlelj i7ygXZVvBqYg5pCymGyrHX0c1/JVY8EgCDBwyhW8= From: "tilkax at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96311] false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda) Date: Mon, 27 Jul 2020 07:40:37 +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: 11.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: tilkax at gmail dot com X-Bugzilla-Status: WAITING 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: Mon, 27 Jul 2020 07:40:38 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96311 --- Comment #2 from Tillmann Karras --- (In reply to Martin Li=C5=A1ka from comment #1) > Confirmed, but it seems the code is rejected with clang: > [...] > Is it a valid test-case? I think so. There is a bug report for Clang: https://bugs.llvm.org/show_bug.cgi?id=3D25= 627 And MSVC used to have the same problem: https://developercommunity.visualstudio.com/content/problem/367326/problems= -with-capturing-constexpr-in-lambda.html=