xuxiandi / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

Incorrect Function Parameter Type Scope #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
int fun2(struct s { int m; } g) { return g.m; }
s a;

void main() {
     int e = fun2(s(3));
}

What is the expected output? What do you see instead?
This is illegal. If 's' is in a homogeneous namespace scope with the other 
function parameters that are not visible outside of the function definition, 
there is no type named 's' on line 2 or constructor 's' on line 5. Angle does 
not error.

What version of the product are you using? On what operating system?
r887

Please provide any additional information below.
http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf 
Section 4.2.2

Original issue reported on code.google.com by kosmo...@gmail.com on 23 Nov 2011 at 11:56

GoogleCodeExporter commented 9 years ago

Original comment by dan...@transgaming.com on 5 Mar 2012 at 3:49

GoogleCodeExporter commented 9 years ago

Original comment by nicolas....@gmail.com on 19 Mar 2012 at 7:02

GoogleCodeExporter commented 9 years ago
Fixed in r1005.

Original comment by nicolas....@gmail.com on 20 Mar 2012 at 8:13