[Bug 72686] GLSL preprocessor does not eat comments correctly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 20 04:47:13 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=72686

--- Comment #4 from Petri Latvala <petri.latvala at intel.com> ---
commit 6005e9cb283214cd57038c7c5e7758ba72ec6ac2
Author: Carl Worth <cworth at cworth.org>
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20140120/7df81bdb/attachment.html>


More information about the intel-3d-bugs mailing list