[Bug c++/35688] New: template visibility botch
mrs at apple dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 25 00:17:00 GMT 2008
/* { 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
More information about the Gcc-bugs
mailing list