[Bug c++/99000] [modules] merging of textual redefinitions: declaration std::__copy_move_a2 conflicts with import
ppalka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 12 15:58:40 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99000
--- Comment #13 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to d7d1cd from comment #12)
> (In reply to Patrick Palka from comment #11)
> > So for example
> >
> > import std;
> > #include <vector>
> >
> > successfully compiles
>
> Sorry, but this example doesn't compile with gcc trunk. Here's an attempt to
> reproduce it with godbolt: https://godbolt.org/z/cc863WYK7
I forgot to mention you need to use `--compile-std-module` or otherwise
manually compile the `<bits/stdc++.h>` as a header unit beforehand in order for
the translation to happen.
More information about the Gcc-bugs
mailing list