[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine

Mike Stump mrs at apple.com
Fri Oct 3 11:13:39 PDT 2008


On Oct 2, 2008, at 11:52 AM, OvermindDL1 wrote:
> And while we are on the subject, gcc is also wrong on this one:
>
> if (int x=0) {
>    int x=0;   // error: redeclaration, but gcc does not emit any  
> errors.
> }

I filed http://gcc.gnu.org/PR37728 for this.



More information about the llvm-dev mailing list