<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - GLSL preprocessor does not eat comments correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72686#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED --- - GLSL preprocessor does not eat comments correctly"
href="https://bugs.freedesktop.org/show_bug.cgi?id=72686">bug 72686</a>
from <span class="vcard"><a class="email" href="mailto:petri.latvala@intel.com" title="Petri Latvala <petri.latvala@intel.com>"> <span class="fn">Petri Latvala</span></a>
</span></b>
<pre>commit 6005e9cb283214cd57038c7c5e7758ba72ec6ac2
Author: Carl Worth <<a href="mailto:cworth@cworth.org">cworth@cworth.org</a>>
Date: Thu Dec 19 16:06:31 2013 -0800
glcpp: Replace multi-line comment with a space (even as part of macro
definition)
The above commit, which I believe is the fix you mentioned, causes this code to
produce a preprocessor error:
/*
*/ // a comment
void main()
{
gl_FragColor=vec4(0.0);
}
0:2(60): preprocessor error: syntax error, unexpected $end
This happens only if the /* */ contains newlines, and only if a single-line
comment follows the multi-line comment. Two multi-line comments works fine.</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>