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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2016-08-14 00:00:00         |2021-9-28

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note clang we get:
<source>:4:15: error: redefinition of 'k'
  for (int k, k < 20; k++);
              ^
<source>:4:12: note: previous definition is here
  for (int k, k < 20; k++);
           ^
<source>:4:17: error: expected ';' in 'for' statement specifier
  for (int k, k < 20; k++);
                ^
<source>:4:17: error: expected expression

I don't think this is better at all.

Reply via email to