Section type conflict on static template member

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When I compile the program "bad.cpp" with g++ I see a section type conflict error. Is that correct or is it a gcc bug?
This error occurs with all versions of gcc I have tried.

//@!	test: g++ bad.cpp
//      bad.cpp:18:25: error: priv causes a section type conflict

template<class t1, class t2>
class outer
{
public:
	t1		a;
	static t2	b;
};

template<class t1, class t2>
t2 outer<t1, t2>::b
		__attribute__((section(".s1")));

int main (void)
{
	static outer<int, int> priv __attribute__((section(".s1")));

	priv.a = 10;
	priv.b = 10;
}
//@! end of file






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux