[Bug c++/60642] New: abi_tag attribute doesn't work on explicit specializations of class templates
lukeallardyce at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 25 02:21:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60642
Bug ID: 60642
Summary: abi_tag attribute doesn't work on explicit
specializations of class templates
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lukeallardyce at gmail dot com
This seems to not be working again in trunk?
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55275)
template<typename T>
class __attribute((abi_tag("foo"))) test{ };
template class __attribute((abi_tag("foo"))) test<int>;
int main() { }
abi_test.cpp:4:46: error: redeclaration of ‘class test<int>’ adds abi tag "foo"
template class __attribute((abi_tag("foo"))) test<int>;
^
abi_test.cpp:2:37: note: previous declaration here
class __attribute((abi_tag("foo"))) test{ };
More information about the Gcc-bugs
mailing list