From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 82D46385780D; Wed, 13 Mar 2024 18:26:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82D46385780D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710354408; bh=I3Nrb9bHqmYuBWKGM5OxuBbBEYUTASGnycPT14zROH0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ngc7sP7i5uwoHEtO99EgY0VBLIVMGgKsRQ6CuEZwHiglpALF5SPYaYqudRicVWEyn 8I/zsAxdQnVXREloeZsfJbV14e+YHzA86emLSqKuDrLLn6UDsFSw/KjR3oktkH0mSp dhYuyUg+GyMBfn3rvuavyFyNNJaJz5Sn6VuLUCJY= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102345] [modules] Cannot define a module interface unit for anything in Date: Wed, 13 Mar 2024 18:26:47 +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.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org 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: cc keywords 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=3D102345 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org Keywords|rejects-valid |diagnostic --- Comment #4 from Patrick Palka --- IIUC we're correct to reject since built-ins are implicitly attached to the global module and here we're trying to redeclare one in another module? Perhaps the diagnostic could be improved here though. Clang gives error: declaration of 'operator new' in module newdel follows declaration= in the global module=