[Mesa-dev] Use of nested functions in nouveau_array.c

İsmail Dönmez ismail at namtrac.org
Wed Nov 9 06:11:05 PST 2011


nouveau_array.c seems to be using nested functions which is not supported
by clang (or the EDG based compilers it seems), the reduced testcase looks
like this:

    auto void f();
    void f() {};

I talked to the clang developers and they don't plan to support this GNU
extension since (they say) it would be too hard to support it in the
parser. Clang website notes the following about this issue (from
http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc )

clang does not support nested functions; this is a complex feature which is
infrequently used, so it is unlikely to be implemented anytime soon.

Is there any chance of removing such code from Mesa?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111109/38ef21f6/attachment.htm>

More information about the mesa-dev mailing list