[PATCH] D33676: Place implictly declared functions at block scope

Roger Ferrer Ibanez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 30 09:02:27 PDT 2017


rogfer01 added a comment.

I think what happens is that the implicit declaration is done in the prototype scope which is not visible later.

Doing the same as GCC in the handling of this extension is probably the best: note that in C90 a function call should not happen inside an array expression because VLAs do not exist there so all the expressions inside an array declarator are constant-expressions, which in C90 (at least) do not allow function-calls.


https://reviews.llvm.org/D33676





More information about the cfe-commits mailing list