sac2c generates zero-sized struct/union
|
|
Bugzilla Link |
817 |
Created on |
Jan 07, 2011 12:48 |
Resolution |
FIXED |
Resolved on |
Feb 23, 2011 15:40 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
When compiling the standard library with -target ultrat3 the compiler fails.
One example of the error is generated by the following command:
cd modules/structures
sac2c -v0 -O3 -linksetsize 0 -target ultrat3 -mt ScalarArith.sac -o lib
The resulting error is:
"fun1.c", line 3: zero-sized struct/union
This is not allowed by the C99 standard and thus sac2c should not generate such code.