From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7AF573858D38; Mon, 22 Apr 2024 22:54:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AF573858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713826478; bh=0pUhbhF0lFujZPvYdkqmFLl/a25mJhj3AHZvkUaMHZ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LDSoMF5d5BWBXRdlCaRMnKFZSDp1T8YIVOQXXZ8RXbpHdfMTrcP569Fd3A/UU09nd oWShSbe1BoF6WWaVO0dyYxnkldaXx4GaNiAjbRLJSIiGNF1f2IkD6vA+eTeaojBCiE 6L1nuvQCCFujacvoIchhiyUTltU8jVpOrUkQYW0I= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114804] [11/12/13/14 Regression] using of a static variable inside a template is not found for use of a base class template of an inner class during instantiation since r11-6815 Date: Mon, 22 Apr 2024 22:54:38 +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: 13.2.0 X-Bugzilla-Keywords: 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: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work cf_known_to_fail short_desc 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=3D114804 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |10.5.0 Known to fail| |11.1.0 Summary|[11/12/13/14 Regression] |[11/12/13/14 Regression] |using of a static variable |using of a static variable |inside a template is not |inside a template is not |found during instantiation |found for use of a base |since r11-6815 |class template of an inner | |class during instantiation | |since r11-6815 --- Comment #2 from Andrew Pinski --- Reduced a little further: ``` template struct blurb=20 { constexpr static int d=3DD; }; template struct pant{}; template struct bug : Base { using Base::d; struct problem : pant { }; }; template struct bug< blurb<2> >; ```=