https://bugs.llvm.org/show_bug.cgi?id=51931

David Blaikie <dblai...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 CC|                            |dblai...@gmail.com

--- Comment #1 from David Blaikie <dblai...@gmail.com> ---
This seems to be working as intended. The intent is to flag technically invalid
code (often triggered via -pedantic) but this code isn't invalid in the mode
you're building with (c99) - interleaved declarations and definitions are OK
there.

GCC implements this the same way by the looks of it:
https://godbolt.org/z/bExKrhs6M

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to