From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7D9D43858C78; Wed, 17 May 2023 14:45:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D9D43858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684334716; bh=QOHSx2Q8BPnXUL3Yqg6EyPCpSIpxvloPYPX0QmKAyfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AeAh+CJ94+pMF7Ak9JiJwDwaMvh98MamLbjbj5Pm2v47RsLnTX8zvy9SeGgGEhHEG TjedMUMp200LeqdNj2Wyhc5+eZ3iZrtxiN+IraQhYX9PiO0y494kSgwPRDu+4GD8T5 MJfL1bJOBO5zZAWHR+VrH9GoFA9bIh8rTRozE31g= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/97340] Spurious rejection of member variable template of reference type Date: Wed, 17 May 2023 14:45:15 +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: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc see_also 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=3D97340 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |ppalka at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D108848 --- Comment #3 from Patrick Palka --- We accept the original testcase (where A is not a template) since r13-6380-gd3d205ab440886, but we still incorrectly reject the version where= A is a template: template struct A { template static constexpr const int &x=3D0; }; template struct B { static constexpr int y=3DA::template x; }; template struct B;=