I just wanted to ask, so it is all completely dependent on the people designing the standard on whether or not such a syntax would be confined to the function's scope.
So no current rules could be used to determine it.
It doesn't make sense. Why? Just why? What use would it serve?
@naraku9333: it is perfectly legal to place a function declaration inside any scope at any point, including function definition scopes and the scope of if statements, for loops, etc.
This is similar to a library I am currently using. "error" is confined to the scope of the if statement, and the if statement evaluates to true if error is not 0 or nullptr.