From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 600D83848403; Thu, 5 Aug 2021 02:38:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 600D83848403 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/15538] Misleading diagnostic for recursive template instantiation Date: Thu, 05 Aug 2021 02:38:55 +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: 3.4.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: minor 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: 7.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone 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, 05 Aug 2021 02:38:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D15538 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.0 --- Comment #9 from Andrew Pinski --- (In reply to Martin Sebor from comment #8) > No change in GCC 7.0. > t.C: In instantiation of =E2=80=98struct A >=E2=80=99: > t.C:5:8: required from =E2=80=98struct H=E2=80=99 > t.C:7:9: required from here > t.C:2:26: error: invalid use of incomplete type =E2=80=98struct H= =E2=80=99 > struct A { typename D::Q r;}; > ^ > t.C:5:8: note: declaration of =E2=80=98struct H=E2=80=99 > struct H : A > { typedef G* Q; }; > ^ No that is what we want. Before it was "no type named 'Q' in 'struct H'".=