From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42076396ECBB; Thu, 3 Dec 2020 11:30:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42076396ECBB From: "davveston at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/69348] alias declarations can not be used inside qualifiers of declarators Date: Thu, 03 Dec 2020 11:30:18 +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: 5.3.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: davveston at gmail dot com 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: cc 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: Thu, 03 Dec 2020 11:30:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D69348 David Friberg changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |davveston at gmail dot com --- Comment #2 from David Friberg --- Another similar but more common (/less contrived) example, rejects-valid e.= g. for GCC 10.1.0 for all C++ version (-std=3Dc++X with X in {98, 11, 17, 2a/2= 0}). // https://wandbox.org/permlink/aQpRzgcvAHOihKz5 template struct S { using type =3D int; type f() const; }; template using type_t =3D typename S::type; template type_t S::f() const { } // error: no declaration matches 'type_t S::f() const' int main() {} --- Brought up in https://stackoverflow.com/questions/65110143/using-typealias-in-place-of-ty= pedef-defined-in-class-in-definition=