[cfe-dev] assertion on initialized struct in non zero address space

Alireza.Moshtaghi at microchip.com Alireza.Moshtaghi at microchip.com
Fri Jan 9 09:55:09 PST 2009


Consider :

struct _st {
  int var1;
  int var2;
} s __attribute ((address_space(1))) = {1, 1};

When it gets to InitListChecker::CheckListElementTypes()
DeclType->isStructureType() returns false and eventually the function
asserts.

How should we go about fixing this problem?

Regards, 

Alireza Moshtaghi
Senior Software Engineer
Development Systems, Microchip Technology




More information about the cfe-dev mailing list