Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 19] New - fsvs 1.2.6 fails to build: function definition is not allowed here

fsvs
Discussion topic

Back to topic list

[Issue 19] New - fsvs 1.2.6 fails to build: function definition is not allowed here

Author ryandesign
Full name Ryan Schmidt
Date 2015-07-26 13:01:29 PDT
Message http://fsvs.tigris.o​rg/issues/show_bug.c​gi?id=19
                 Issue #|19
                 Summary|fsvs 1.2.6 fails to build: function definition is not
                        |allowed here
               Component|fsvs
                 Version|current
                Platform|Linux
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|pmarek
             Reported by|ryandesign






------- Additional comments from ryandesign at tigris dot org Sun Jul 26 13:01:28 -0700 2015 -------
Hello, I'm the maintainer of fsvs in the MacPorts package management system. fsvs 1.2.6 does not
build with clang on OS X 10.10:

waa.c:773:2: error: function definition is not allowed here
        {
        ^

This looks like a nested function definition. I wasn't aware that that was even possible in C/C++
code, and the clang documentation says it is a nonstandard feature of gcc that clang does not
support:

http://clang.llvm.or​g/docs/UsersManual.h​tml#gcc-extensions-n​ot-implemented-yet

$ clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.10.5
BuildVersion: 14F6a

« Previous message in topic | 1 of 3 | Next message in topic »

Messages

Show all messages in topic

[Issue 19] New - fsvs 1.2.6 fails to build: function definition is not allowed here ryandesign Ryan Schmidt 2015-07-26 13:01:29 PDT
     [Issue 19] fsvs 1.2.6 fails to build: function definition is not allowed here pmarek P.Marek 2015-07-26 22:48:49 PDT
     [Issue 19] fsvs 1.2.6 fails to build: function definition is not allowed here ryandesign Ryan Schmidt 2015-07-26 23:51:51 PDT
Messages per page: