[Mesa-dev] [Bug 93188] "nir/nir.h", line 552: Error: Unexpected type name "nir_src" encountered.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Dec 1 00:23:52 PST 2015


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

--- Comment #1 from Alan Coopersmith <alan.coopersmith at oracle.com> ---
The Studio C++ compiler does not support C99 compound literals - when I raised
this to the Studio C++ team they said:

> This:
>   (nir_src) { init }
> 
> is a C99 feature called "compound literals", which is not part of any C++
> standard. G++ supports it as an extension, Studio C++ does not support it.
> 
> C++ code using this feature is non-portable...

I filed Oracle bug 21371509 to request support as an enhancement, but if
you want to build Mesa with Studio now, you'll need to rewrite that code
to use a portable construct instead.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151201/57a0de7e/attachment.html>


More information about the mesa-dev mailing list