From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25231 invoked by alias); 3 Jan 2005 12:47:42 -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 25182 invoked by uid 48); 3 Jan 2005 12:47:36 -0000 Date: Mon, 03 Jan 2005 12:47:00 -0000 Message-ID: <20050103124736.25181.qmail@sourceware.org> From: "jbeulich at novell dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050103105200.19238.jbeulich@novell.com> References: <20050103105200.19238.jbeulich@novell.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19238] cannot change visibility of static variable in function template X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg00191.txt.bz2 List-Id: ------- Additional Comments From jbeulich at novell dot com 2005-01-03 12:47 ------- I'm sorry, test case below. The expectation would be that the visibility attribute gets inherited (as described above) from function template instances and member functions of class template instances to their static variables. If that conflicts with anything I can't think of right now, then the backup solution would be to allow the attribute on such objects. unsigned gu; template T test() __attribute__((__visibility__("hidden"))); template T test() { static T st; return st = gu; } void test() { test(); } -- What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW Ever Confirmed| |1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19238