From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3566D3840C2A; Wed, 5 Aug 2020 18:13:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3566D3840C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1596651194; bh=bzRI6dbxDK7gL+f6jaCQ6Ad/jVyWalbmoHA1K2J+9Vg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tcJIePJbgKO+1opDaekjkWPdaehmOyUjr0sji4AY1ecgEuSn46sW7O+Ctm1KvBq2e sQj3vymlgqqB0LGcxCHK3Y3nP8ar0N0RjUzhBpRmsMnybKU+NcS4ECcWbwlY7j8BS5 o5UiY4KcJviqQvZCt/4+sfeyQqWooimctIF/ROLg= From: "s_gccbugzilla at nedprod dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96485] Lambda parsing regression in GCCs 9 and onwards Date: Wed, 05 Aug 2020 18:13:14 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: s_gccbugzilla at nedprod dot com 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 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, 05 Aug 2020 18:13:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96485 --- Comment #3 from Niall Douglas --- (In reply to Jakub Jelinek from comment #2) > [[gnu::no_sanitize_undefined]] instead of the GNU __attribute__ is accept= ed, > but as the C++ specification requires it applies to the type not the > declaration and therefore it is ignored. Obviously the above is an extract from production code. We were using lambd= as to wrap individual bits of unsafe code which trips the UB sanitiser. It wou= ld be useful to retain that ability, as having to sprinkle the code with: struct { auto operator()(auto...) const __attribute__((no_sanitize_undefine= d)) { } }()(...);=20 ... seems retrograde.=