empty structs
This is informative rather than a bug.
I just downloaded the intel C compiler for linux and
tried to use it with ghc. I worked out some odd problems
with include files (I needed to compile the program in
the same directory as the include files - should they
be "#include <Stg.h>" rather than "#include "Stg.h"" ?
Anyway, having got through that I tried to compile again
and discovered that in the definitions with PROFILE
(or PAR) defined (I'm still trying to figure out the
way the compiler uses -U), that some of the structures
are empty - in Closures.h, for example, there is
typedef struct {
/* empty */
} StgProfHeader ;
If I'm reading the C standard correctly (I got a pdf
file from :
http://www.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.pdf.gz )
a "struct-declaration-list" needs to include at least
one "struct-declaration" (p 401)
Trac metadata
Trac field | Value |
---|---|
Version | 5.0 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | ResolvedFixed |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |