https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102345

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ppalka at gcc dot gnu.org
           Keywords|rejects-valid               |diagnostic

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
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

Reply via email to