On Wed, May 26, 2021 at 8:55 AM lexa kop via Gcc-bugs
<gcc-bugs@gcc.gnu.org> wrote:
>
> [ver]i try compile it on gcc 11 and gcc 12
> [new features]i use gcc modules features(module;export module, import,
> import export)
> [command]g++ *.cpp -std=c++20 -fmodules-ts
> /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/g++-v12/bits/basic_string.h:
> In member function ‘std::__cxx11::basic_string<_CharT, _Traits,
> _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits,
> _Alloc>::_M_create(std::__cxx11::basic_string<_CharT, _Traits,
> _Alloc>::size_type&, std::__cxx11::basic_string<_CharT, _Traits,
> _Alloc>::size_type) [with _CharT = char; _Traits =
> std::char_traits<char>; _Alloc = std::allocator<char>]’:
> /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/g++-v12/bits/basic_string.h:233:7:
> error: unrecognizable insn:
>   233 |       _M_create(size_type&, size_type);
>       |       ^~~~~~~~~
> (insn 20 19 21 5 (set (reg:DI 98)
>         (reg/v 87 [ __old_capacity ]))
> "/usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/g++-v12/bits/basic_string.tcc":143:7
> -1
>      (nil))
> during RTL pass: vregs
> /usr/lib/gcc/x86_64-pc-linux-gnu/12.0.0/include/g++-v12/bits/basic_string.h:233:7:
> internal compiler error: in extract_insn, at recog.c:2770


The error message does not look related at all to modules.  Can you
file a bug to https://gcc.gnu.org/bugzilla/ after reading
https://gcc.gnu.org/bugs/?

So on the internal compiler error message here, it looks like a mode
is missing for reg 87; I don't know why off hand either.

Thanks,
Andrew

Reply via email to