[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: redeclaration with different type allowed by PCC.
From: Anders Magnusson <ragge () ludd ! ltu ! se>
Date: 2010-06-25 19:54:36
Message-ID: 4C25097C.9050801 () ludd ! ltu ! se
[Download RAW message or body]
Jesus Sanchez wrote:
> When declaring the same variable ('foo' for instance) inside
> a function, PCC doesn't complain about it.
>
> ------------------------------
>
> int main(void){
>
> char foo;
> int foo; // No error message.
> }
>
> --------------------------------
>
> should this return an error? -Wshadow returns a warning
> but it compiles, even if you define the variables using
> initializers, I didn't found anything about this on
> ISO 9899 TC3.
Eh, what an ugly bug :-/ You have an amazing skill of finding bugs,
Jesus, I'm impressed :-)
Please file a bug report (as usual :-)
-- Ragge
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic