This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35688] New: template visibility botch
- From: "mrs at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2008 00:17:05 -0000
- Subject: [Bug c++/35688] New: template visibility botch
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/* { dg-require-visibility "" } */
/* { dg-options "-fvisibility=hidden" } */
/* { dg-final { scan-hidden "__ZN1s6vectorI1AEC1Ev" } } */
/* { dg-final { scan-hidden "__ZN1s3fooI1AEEvT_" } } */
/* Radar 5813435 */
namespace s __attribute__((visibility("default"))) {
template <class T>
class vector {
public:
vector() { }
};
template <class T>
void foo(T t) {
}
}
class A {
public:
A() { }
};
s::vector<A> v;
int main() {
A a;
s::foo(a);
}
should pass (if I got the spelling for the symbols correct wrt leading _).
radr://5813435
--
Summary: template visibility botch
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrs at apple dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35688