[arm-gnu] Static template member in assigned section -- section type conflict
Gene Smith
gds at chartertn.net
Mon Jan 23 01:36:01 UTC 2012
On 01/21/2012 02:58 PM, Gene Smith wrote:
> Attached are two test cases that illustrate an error I am seeing with
> templates... <snip>
This is the closest thing I can find to my test case:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41091
However, the test cases there compile with no error for me.
Here is a simpler variation on my test case that shows the same error:
//@! test: g++ bad2.cpp
// bad2.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
More information about the arm-gnu
mailing list