Loop variable may not be declared static


UPDATE, February 2021: Very soon after I tweeted this, Shafik Yaghmour went and fixed the bug for the Clang 12.0 release; see Clang review D92671. What a spoilsport! :)

As of this writing, GCC trunk still reproduces: Godbolt.

Posted 2020-12-03