AnsweredAssumed Answered

Section type conflict

Question asked by gds on Jan 24, 2012
Latest reply on Jan 24, 2012 by gds

When I compile the program "bad.cpp" with CS arm-none-eabi-g++ (or all other versions of gcc I have tried) I see a section type conflict error. Is that correct or is it a gcc bug?  //@!    test: g++ bad.cpp //      bad.cpp:18:25: error: priv causes a section type conflict  templateclass outer { public:     t1        a;     static t2    b; };  templatet2 outer::b         __attribute__((section(".s1")));  int main (void) {     static outer priv __attribute__((section(".s1")));      priv.a = 10;     priv.b = 10; } //@! end of file