From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC6463830B5E; Thu, 27 Jun 2024 19:51:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC6463830B5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719517901; bh=KGQaLuSysK8VlBHsdk/bIWXjofvnvZalj398ts9UEP8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rja9oefGjvHpEbJS84H8DoVYnODR5p6gP21z70fOmfdwAQnTq0EICLFN5YB+aYG53 wvD61uxD5bw4/hdV5AdHZC5esgeIdMxt5rweyOOhO3ZleOZB0j/4Ox+dNAUq79Ce74 DP4bVsCbQhkAD0VXj00SOHd//CrLFgKUo27yFS5U= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/115676] [c++11-C++14] gcc allows invalid calling to implicitly-deleted default constructor of a template derived class (non-depdenent) in template function Date: Thu, 27 Jun 2024 19:51:41 +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: 13.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: short_desc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115676 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|gcc allows invalid calling |[c++11-C++14] gcc allows |to implicitly-deleted |invalid calling to |default constructor of a |implicitly-deleted default |template derived class in |constructor of a template |template function |derived class | |(non-depdenent) in template | |function CC| |pinskia at gcc dot gnu.org --- Comment #1 from Andrew Pinski --- Actually I think this is just QoI case. IIRC the compiler does not require error out if inside a template only if it is instantiated.=