chill added a comment.

In https://reviews.llvm.org/D33676#767746, @rogfer01 wrote:

> I understand that the scope `S` in this case is a (function) prototype scope 
> so it would not be the innermost block scope, would it? That said, GCC does 
> not accept `p_ok` above so probably this behaviour is sensible, after all in 
> C99 this is an extension.


I actually missed the possibility of a function call expression to appear in 
such a context. I also think that GCC (and Clang) should accept the `p_ok` 
initializer, as they do if one adds `extern int call_to_undeclared();` at the 
beginning of the block.


https://reviews.llvm.org/D33676



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to