From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 504C8385782C; Fri, 29 Apr 2022 03:00:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 504C8385782C From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvNDkzODddIHQuY3h4OjE0MDogZXJyb3I6IHRvbyBt?= =?UTF-8?B?YW55IGluaXRpYWxpemVycyBmb3Ig4oCYY29uc3QgX19jbGFzc190eXBlX2lu?= =?UTF-8?B?Zm9fcHNldWRv4oCZ?= Date: Fri, 29 Apr 2022 03:00:51 +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: 4.4.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 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: Fri, 29 Apr 2022 03:00:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49387 --- Comment #9 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:97b30a399ef561f6f37a2c08c830fdf3141bb504 commit r13-24-g97b30a399ef561f6f37a2c08c830fdf3141bb504 Author: Jason Merrill Date: Fri Apr 15 00:11:00 2022 -0400 c++: typeid and instantiation [PR102651] PR49387 was a problem with initially asking for a typeid for a class template specialization before it was complete, and later actually fill= ing in the descriptor when the class was complete, and thus disagreeing on = the form of the descriptor. I fixed that by forcing the class to be comple= te, but this testcase shows why that approach is problematic. So instead l= et's adjust the type of the descriptor later if needed. PR c++/102651 PR c++/49387 gcc/cp/ChangeLog: * rtti.cc (get_tinfo_decl_direct): Don't complete_type. (emit_tinfo_decl): Update tdesc type if needed. gcc/testsuite/ChangeLog: * g++.dg/rtti/typeid-complete1.C: New test.=