Opened 16 years ago

Closed 16 years ago

Last modified 48 years ago

#45 closed bug (Fixed)

empty structs

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: Compiler Version: 5.0
Keywords: Cc:
Operating System: Architecture:
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


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 : )
a "struct-declaration-list" needs to include at least 
one "struct-declaration" (p 401) 

Change History (1)

comment:1 Changed 16 years ago by simonmar

Status: assignedclosed
Logged In: YES 

I've removed these empty structs.
Note: See TracTickets for help on using tickets.