From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C13C938582AD; Mon, 17 Oct 2022 13:36:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C13C938582AD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666013764; bh=ibLsjjh6GBp6U1vX7tDz8yHvUMnSR3CW5Z6KMdrEoPk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tZ07oZROduCTSYLt7U05hYxNmEmCT7+AR5ULml1o9+6i24OuG+vk6GlgSQHEFRpU5 DVhq9WLIn+4kLmuc+ZywItD88Ba0Z9+xyK5weNC/tO33QduQwHAaFlGpfuB1a2pTYN AYhhO2QUUCkXHkbSfVjDcuwqCOlAhqF0LB4krgG8= From: "tomaqa at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107296] C++20 nested typename: non-template used as template, need typename Date: Mon, 17 Oct 2022 13:36:04 +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: 12.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: tomaqa 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: attachments.created 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=3D107296 --- Comment #3 from Tom=C3=A1=C5=A1 K. --- Created attachment 53716 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53716&action=3Dedit minimal example Description: When `-std=3Dc++20` option is used, it requires `typename` in definition of= a constructor of a template class that is nested in a nested class. But it is not related to a typename in this case ... I believe this is a consequence of c++20 new rules about treating `typename= `. The example works just fine if it is run with `-std=3Dc++17`, with the very= same compiler.=