<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GL33-CTS.CommonBugs.CommonBug_ReservedNames fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95323#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GL33-CTS.CommonBugs.CommonBug_ReservedNames fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=95323">bug 95323</a>
from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
<pre>At least per the GLSL 1.50 specification, this test enforces NON-conformance!
The grammar makes it quite clear that
in struct { ... } foo;
declares a shader input "foo" that is an anonymous structure. Here are the
relevant bits of the grammar (with some omissions for clarity):
single_declaration:
...
fully_specified_type IDENTIFIER
...
fully_specified_type:
type_specifier
type_qualifier type_specifier
type_qualifier:
storage_qualifier
...
storage_qualifier:
...
IN
...
type_specifier:
type_specifier_no_prec
precision_qualifier type_specifier_no_prec
type_specifier_no_prec:
type_specifier_nonarray
...
type_specifier_nonarray:
VOID
FLOAT
INT
...
struct_specifier
TYPE_NAME
struct_specifier:
...
STRUCT LEFT_BRACE struct_declaration_list RIGHT_BRACE
Neither section 4.3.4 (Inputs) nor section 4.3.7 (Interface Blocks) add any
limitations that I can see. I'll dig through later specs to see if this
changed.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>