From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30222 invoked by alias); 13 Sep 2004 21:37:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30210 invoked by uid 48); 13 Sep 2004 21:37:51 -0000 Date: Mon, 13 Sep 2004 21:37:00 -0000 From: "austern at apple dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040913213750.17470.austern@apple.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17470] New: Visibility attribute ignored for explicit template instantiation X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg01438.txt.bz2 List-Id: [isolde:tmp]$ cat foo.cc template T identity(T t) { return t; } template int identity(int); template __attribute__((visibility("default"))) double identity(double); [isolde:tmp]$ /work/root.u/bin/g++ -fvisibility=hidden -c foo.cc [isolde:tmp]$ nm -m foo.o 00000024 (__TEXT,__text) private external __Z8identityIdET_S0_ 00000000 (absolute) private external __Z8identityIdET_S0_.eh 00000000 (__TEXT,__text) private external __Z8identityIiET_S0_ 00000000 (absolute) private external __Z8identityIiET_S0_.eh [isolde:tmp]$ -- Summary: Visibility attribute ignored for explicit template instantiation Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: austern at apple dot com CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-apple-darwin7.5.0 GCC host triplet: powerpc-apple-darwin7.5.0 GCC target triplet: powerpc-apple-darwin7.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17470