search for: pdecl

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

Did you mean: decl
2008 Oct 02
2
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...statement are declared in the declaration space of the condition of the while statement. Then, if you read 6.5.1p2 it states: <quote> -2- When the condition of a while statement is a declaration, the scope of the variable that is declared extends from its point of declaration (basic.scope.pdecl) to the end of the while statement. A while statement of the form while (T t = x) statement is equivalent to label: { // start of condition scope T t = x; if (t) { statement goto label; } } // end of condition scope <...
2008 Oct 02
0
[LLVMdev] MS C++ gives error C2371 on this code while (obviously)gcc compiles it fine
...declaration space of the condition of > the while statement. Then, if you read 6.5.1p2 it states: > > <quote> > -2- When the condition of a while statement is a declaration, the scope of > the variable that is declared extends from its point of declaration > (basic.scope.pdecl) to the end of the while statement. A while statement of > the form > > while (T t = x) statement > > is equivalent to > label: > { // start of condition scope > T t = x; > if (t) { > statement > goto label; > } >...
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
2019 Apr 30
6
Disk space and RAM requirements in docs
...16K build/tools/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/Output 16K build/tools/clang/test/CXX/basic/basic.stc/basic.stc.dynamic/basic.stc.dynamic.deallocation 16K build/tools/clang/test/CXX/basic/basic.start/basic.start.init 16K build/tools/clang/test/CXX/basic/basic.scope/basic.scope.pdecl 16K build/tools/clang/test/CXX/basic/basic.scope/basic.scope.local 16K build/tools/clang/test/CXX/basic/basic.lookup/basic.lookup.elab 16K build/tools/clang/test/CXX/basic/basic.def.odr 16K build/tools/clang/test/CXX/basic/basic.def 16K build/tools/clang/test/CodeGen/avr/attributes 16K build/...