fft_cpx fails to compile on developer sac2c
|
|
Bugzilla Link |
807 |
Created on |
Dec 21, 2010 18:28 |
Resolution |
DUPLICATE |
Resolved on |
Oct 13, 2011 16:16 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
When compiling fft_cpx (FT benchmark) the sac2c compiler (developer version) fails at stage 10. The same code compiles fine on the product version.
** 10: Creating Wrapper Code and Eliminating User-Defined Types ...
**** Creating Wrapper Bodies ...
**** Eliminating conditionals in wrapper code ...
**** Establishing static single assignment form in wrapper code ...
**** Trying to dispatch functions statically ...
**** Removing all structs ...
**** Eliminating User-Defined Types ...
ASSERTION FAILED: file 'typecheck/elim_alpha_types.c', line 492
new element type of array does not match old type!
EXECUTION TERMINATED
make: *** [fft_cpx] Aborted
rm -rf ./fft_cpx.c
The assert is generated in sac2c/src/libsac2c/typecheck/elim_alpha_types.c:491.
The reason this show up in the developer version is that the DBUG_ASSERT line is inside an #ifndef DEBUG_OFF.
This assert also occurs for me with other sac files (the Mandelbrot tutorial for example).