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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to 康桓瑋 from comment #1)
> _M_size._M_size in the function body is already const.

It shouldn't be. Is that a compiler bug?

Clang compiles the same libstdc++ code without problems.

Reply via email to