From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 362EE3877010; Sun, 22 Mar 2020 00:10:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 362EE3877010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584835832; bh=9XgrY3MruF8iNvWDecZMLFAh7klafH+DlDMfWgNyA7g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W6KiDXKbKnahQuzIfvQQidVXJg8GcuM51HqZP3/JcEfhS247A0VP8otudHtIxccrL VMpoRP6zQMMh1VNhR4RAnVNecL0sPg9V5VE6VdZRwj+5/h03jLIPZ9uNn2G0Lz0M/4 FZGViwW55K1KbpYcRGPwYepD+GtzyJkZzsn1Vhos= From: "vince.a.bridgers at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94255] template specialization in different namespace causes crash Date: Sun, 22 Mar 2020 00:10:32 +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: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vince.a.bridgers 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: 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: Sun, 22 Mar 2020 00:10:32 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94255 --- Comment #1 from Vince Bridgers --- The corrected code successfully compiles. Basically, making sure the templa= te specialization is in the correct namespace.=20 namespace clang { class DynTypedNode { private: template struct BaseConverter; template struct ValueConverter {}; }; namespace ast_type_traits { using DynTypedNode =3D ::clang::DynTypedNode; }; // end namespace ast_type_traits }; // end namespace clang namespace clang { //namespace ast_type_traits { template <> struct DynTypedNode::BaseConverter : public ValueConverter {}; //}; // end namespace ast_type_traits }; // end namespace clang int main(void) { return 0; }=