//@! test: g++ bad.cpp // bad.cpp:18:25: error: priv causes a section type conflict template class outer { public: t1 a; static t2 b; }; template t2 outer::b __attribute__((section(".s1"))); int main (void) { static outer priv __attribute__((section(".s1"))); priv.a = 10; priv.b = 10; } //@! end of file