From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B74FF3849AEA; Fri, 10 May 2024 13:38:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B74FF3849AEA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715348302; bh=FzO71VaYuqT0nk2ldF2j/SkDhwNis6J/A6cdwVEBblU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MKEmuh7MKZmwoh5mRTl/bEjzFDzv0Y0d66C2NfbjB6IUTQmWul4mYHghlStpiD3vO FdoV1Rk6+NgJQ0IoSNInREf9igLfU07p6vuEyKjpR4sNZxJtpNSkF1GUqEBauA2nO8 WA+7Vqd6L2bzM/d+crSN9IFMBguRwA+fU7WfO+Ms= From: "sska1377 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115030] Constrained auto variable declaration with partial specialization Date: Fri, 10 May 2024 13:38:22 +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.1.1 X-Bugzilla-Keywords: accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: sska1377 at gmail 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: attachments.created 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=3D115030 --- Comment #2 from Seyed Sajad Kahani --- Created attachment 58177 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58177&action=3Dedit a similar code that works, as a clue (clue_1.cc) Additionally, the problem will disappear by enclosing variable in a class (= see attached clue.cc)=