From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4974 invoked by alias); 13 Dec 2004 20:47:06 -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 4677 invoked by uid 48); 13 Dec 2004 20:46:58 -0000 Date: Mon, 13 Dec 2004 20:47:00 -0000 Message-ID: <20041213204658.4676.qmail@sourceware.org> From: "efrias at syncad dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040913213750.17470.austern@apple.com> References: <20040913213750.17470.austern@apple.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17470] Visibility attribute ignored for explicit template instantiation X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg01859.txt.bz2 List-Id: ------- Additional Comments From efrias at syncad dot com 2004-12-13 20:46 ------- I just ran into this quirk too. It looks like you can work around by using "#pragma GCC visibility push(default)" before the explicit instantiation and then popping afterwards. I'd greatly prefer the __attribute__ syntax because that would permit me to use one macro for porting __declspec(dllexport) constructs from windows code. Even displaying a warning or error for the ignored __attribute__ would've saved me some grief. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |efrias at syncad dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17470