<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [GLSL] no-overloads.vert fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=108109">108109</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[GLSL] no-overloads.vert fails
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>18.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>glsl-compiler
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vadym.shovkoplias@globallogic.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre># ./bin/glslparsertest
tests/spec/arb_shader_subroutine/linker/no-overloads.vert fail 1.50
--check-link
Successfully compiled and linked vertex shader
tests/spec/arb_shader_subroutine/linker/no-overloads.vert: (no compiler output)
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.50
// require_extensions: GL_ARB_shader_subroutine
// check_link: true
// [end config]
#version 150
#extension GL_ARB_shader_subroutine: require
subroutine void func_type();
/* A program will fail to link if any shader contains two or more
* functions with the same name, at least one of which is associated
* with a subroutine type.
*/
subroutine (func_type) void f() {}
void f(int x) {}
void main() {}
PIGLIT: {"result": "fail" }
Accordingly to GLSL spec 4.0 this test shouldn't fail:
Section 6.1.2 Subroutines:
"A program will fail to compile or link if any shader
or stage contains two or more functions with the same
name if the name is associated with a subroutine type."</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>