Closed barracuda156 closed 1 year ago
Thanks, I currently work i on the dev43 branch so I forgot about the current master. Will fix it.
The errors in bits.c example are legitime, thanks.
The errors reported on c_forpair
is a clang compiler bug which was reported here earlier, see one of the issues for details (anonymous struct in for-statement). You can use c_foreach
instead in your code. c_forlist
will have the same issue, but is not that often needed.
Closed as not an error, and can be avoided for old clang compilers by not using c_forpair.
Closed as not an error, and can be avoided for old clang compilers by not using c_forpair.
Well, we could try using a newer Clang. Which version of LLVM Clang will do?
The errors reported on
c_forpair
is a clang compiler bug which was reported here earlier, see one of the issues for details (anonymous struct in for-statement). You can usec_foreach
instead in your code.c_forlist
will have the same issue, but is not that often needed.
Tyge, while that makes sense, the problem is that it's actually STC itself that isn't compiling with this code.
How do we fix that?
Use clang 12 or newer: https://github.com/stclib/STC/issues/18 STC does not use c_forpair, only the examples. Remove the ones which uses c_forpair and c_forlist.
Example of failure on Catalina:
Log from Catalina: https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/147551/steps/install-port/logs/stdio Log from Snow Leopard: https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/160913/steps/install-port/logs/stdio
Build with GCC works, aside of the following issue (I had to simply delete that test case): https://github.com/stclib/STC/issues/60
P. S. To keep track of relevant issues, one test fails: https://github.com/stclib/STC/issues/61