Liste des Groupes | Revenir à cl c |
On 04/12/2024 16:38, Tim Rentsch wrote:
>Ben Bacarisse <ben@bsb.me.uk> writes:>
>Bart <bc@freeuk.com> writes:>
>On 03/12/2024 11:15, Ben Bacarisse wrote:
>Bart <bc@freeuk.com> writes:
...
>If I write this
>
int *A, B[10], C(int);
>
My compiler tells me that:
>
A is a local variable [...]
B is a local variable [...]
C is a function with return type of 'i32', taking one
unnamed parameter of type 'i32'.
>
(Interestingly, it places C into module scope, so the same
declaration can also create names in different scopes!)
That means your compiler is not compiling standard C. In standard C
all entities declared locally have block scope, not file scope.
OK, it can be added to the list of things that make C harder to
compile.
Les messages affichés proviennent d'usenet.