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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
In GCC 11+ we start to warn about this code with -W -Wall:
<source>: In function 'int main()':
<source>:5:19: warning: 's' may be used uninitialized [-Wmaybe-uninitialized]
    5 |   std::string s = s;
      |                   ^

Reply via email to