anonymous enum failure with Solaris Studio cc

Issue #142 resolved
Danek Duvall
created an issue

The Studio C compiler doesn't accept dollar signs in identifiers except in K&R mode (which doesn't work for other reasons), so all the functionality that relies on this is completely broken with that compiler, giving errors like

"testing/__pycache__/_cffi__xb9c8f111x913d5789.c", line 160: invalid source character: '$'

Of course, it works just fine with gcc, but I'd like to be able to have the choice. I tried changing the dollar signs in and to a uniquish string ("danek"), and that seemed to work, but I don't know if it's really the right fix.

Comments (3)

  1. Armin Rigo

    It is not expected that cffi generates C sources with '$' in it. It may have worked purely by chance, but I didn't know that gcc accepts '$' signs in identifiers. Can you give us an example of file that produces such C sources? Or does it occur even simply by running the test suite?

  2. Log in to comment