From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8BF53858C52; Thu, 29 Feb 2024 11:59:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8BF53858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709207951; bh=PLrOTE5xUMVA3T/cv9vOCCfd8P3u5EwnguShz5pWdMI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=n26SIWJrVNKzUA4rK4Gs/0/6ENI2jXPxw2dnLv3a+6Z2Zl4EedXiaP1rhVIRdFZIM jcWyt6Y2mVonEmLqzfRl/1zJDlNDH0L2Q6L8WFmbAsAwcInMmxFfiPVDVX9lJcqLui n3MQqpYKIoRnPM/YTO9ojcxlgbyRxsI/NE2RZ7/M= From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114163] Calling member function of an incomplete type compiles in gcc and does not compile in clang and msvc Date: Thu, 29 Feb 2024 11:59:11 +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: 14.0 X-Bugzilla-Keywords: accepts-invalid, c++-lambda X-Bugzilla-Severity: normal X-Bugzilla-Who: harald at gigawatt dot nl 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114163 Harald van Dijk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |harald at gigawatt dot nl --- Comment #1 from Harald van Dijk --- You may be right that the class is not complete at that point but there is = no requirement for the class to be complete. CWG1836 changed that to "In both cases, the class type shall be complete unless the class member access appe= ars in the definition of that class." Here, the class member access does appear= in the definition of the class, so it's okay that the class is incomplete.=