From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 702FC3858CD1; Wed, 20 Mar 2024 04:04:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 702FC3858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710907477; bh=hLKMZFKkVlbw7Zrekbh/mv6V9mF7D/FRgLOMBRCZ6UY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jqhIY0M/ASM137jkav9NiNTdOTn336E9oxtu6LEtXk3Tfa/37tCtKmvnwksyy2JJS GNYqDxFNe/XZn3Xfv0QmVeGEeqTLOE+tgB9ajSsVmjn0NF5J03q0KzTeuIx7Y1cYgk aUj01cgGpkMuwIJQnflVJxK1NG4mj962Zo0TUxcw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114393] [14 regression] over eager "invalid use of void expression" ? since r14-2170-g4cf64d9cc2faf4 Date: Wed, 20 Mar 2024 04:04: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: 14.0 X-Bugzilla-Keywords: c++-lambda, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 14.0 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=3D114393 --- Comment #5 from Andrew Pinski --- Reduced testcase which shows this never worked: ``` template struct c1 {}; template inline constexpr auto b_v =3D t; template using c1_t =3D c1>; template constexpr auto g(_Data __data) { return c1_t<_Data>{}; } void f() { auto &&b =3D g(0); } ``` I don't know understand how the original testcase worked in GCC 13 when the above testcase never worked ...=