https://bugs.llvm.org/show_bug.cgi?id=51931
Luka Kudra <luka.ku...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |FIXED
--- Comment #2 from Luka Kudra <luka.ku...@gmail.com> ---
Yes, gcc and clang behave the same if I compile the code with just -std=c99
-pedantic, but if I explicitly add -Wdeclaration-after-statement gcc throws a
warning and clang doesn't.
I modified your code by adding -Wdeclaration-after-statement in the first two
columns, you can see that the behavior is different between gcc and clang:
https://godbolt.org/z/5dzjvfYYq
--
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