#885 Won't compile valid C including a typedef'd enum

closed-fixed
Erik Petrich
5
2013-05-25
2005-02-22
Anonymous
No

Using latest CVS version of SDCC, include the attached
file. It will generate an error related to the use of
EventType with the struct. This is valid C that
compiles under gcc and msvc.

andy AT prestonmedina DOT com

thanks,

Andy

Discussion

  •  
    Attachments
  • Erik Petrich
    Erik Petrich
    2005-04-02

    • milestone: --> fixed
    • assigned_to: nobody --> epetrich
    • status: open --> closed-fixed
     
  • Erik Petrich
    Erik Petrich
    2005-04-02

    Logged In: YES
    user_id=635249

    The problem is not related to EventType but instead the void
    *data; declaration that follows it. Correctly compiles with
    the --std-c89 or --std-c99 options now.