search for: gcccompil

Displaying 5 results from an estimated 5 matches for "gcccompil".

Did you mean: gcccompiles
2008 Oct 02
1
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...--------------------------------------- From: "Argiris Kirtzidis" <akyrtzi at gmail.com> Sent: Thursday, October 02, 2008 12:32 PM To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Subject: Re: [LLVMdev] MS C++ gives error C2371 on this code while(obviously)gcccompiles it fine ... > See 6.4p2: "The rules for conditions apply both to selection-statements > and to the for and while statements" ... > -Argiris
2008 Oct 02
2
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...--------------------------------------- From: "Argiris Kirtzidis" <akyrtzi at gmail.com> Sent: Thursday, October 02, 2008 11:33 AM To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Subject: Re: [LLVMdev] MS C++ gives error C2371 on this code while(obviously)gcccompiles it fine > Jay Freeman (saurik) wrote: >> gcc is correct. According to the ISO specification, the >> for-init-statement >> is supposed to inject any variable names into the same declarative scope >> as >> the condition of an equivalent restructuring of the loop...
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
Jay Freeman (saurik) wrote: > Those rules only apply to if and switch statements. (Yes, this is insane, > but true.) The entire section you are quoting from, 6.4, is titled > "Selection statements [stmt.select]", which specifically covers these two > cases. A for is an iteration statement, not a selection statement. > See 6.4p2: "The rules for conditions apply
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
Jay Freeman (saurik) wrote: > gcc is correct. According to the ISO specification, the for-init-statement > is supposed to inject any variable names into the same declarative scope as > the condition of an equivalent restructuring of the loop in the form of a > while statement, which in turn fronts the declaration to an extra scope that > surrounds the /entire/ loop construct.
2008 Oct 02
3
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
gcc is correct. According to the ISO specification, the for-init-statement is supposed to inject any variable names into the same declarative scope as the condition of an equivalent restructuring of the loop in the form of a while statement, which in turn fronts the declaration to an extra scope that surrounds the /entire/ loop construct. VC++ seems to be scoping the variables as if they were