From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5CEDA39960FC; Wed, 17 Jun 2020 18:58:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5CEDA39960FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592420330; bh=PJwVhHtPgYyReRoCuMYz74R7xfV7RVb1YX2XeqW4G6o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wMvw3g69gnTZY4Worbe/WM6DnOf7Z35W/Q2nkHMRxOFt63TK+n+TN1jcpQ5C+vGNf tkqgiHXh8DNgHxFKfoAVQfa1j/vP795K10qmag0PER5mo2qpmel1rMCzfakJ4IlSm8 zKnjd/oO/ekFq+F/dd24gzBcNAQZFg5c/8QKOKAI= From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95725] Confusing error diagnostic in an invalid template Date: Wed, 17 Jun 2020 18:58:50 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org 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: 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: Wed, 17 Jun 2020 18:58:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95725 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #3 from Martin Sebor --- The diagnostic is usually for false positive/negative warnings or wrong information in diagnostic messages. It's not normally used for internal compiler errors. But I don't see an ICE on trunk with this test case, just errors (so diagnostic would seem appropriate). At the same time, the latest GCC output seems reasonable. Clang prints something similar: pr95725.C:1:20: error: expected expression template ' in template-parameter-list pr95725.C:1:22: warning: declaration does not declare anything [-Wmissing-declarations] 1 warning and 3 errors generated. I'm not sure there's a lot to improve here.=