public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19238] New: cannot change visibility of static variable in function template
@ 2005-01-03 10:52 jbeulich at novell dot com
  2005-01-03 11:05 ` [Bug c++/19238] " giovannibajo at libero dot it
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: jbeulich at novell dot com @ 2005-01-03 10:52 UTC (permalink / raw)
  To: gcc-bugs

Since handle_visibility_attribute as its very first action checks
decl_function_context (decl) != 0, and since the visibility attribute of the
function template does not get inherited to its static variables, there is no
way to actually limit the visibility of these static variables.
This in turn prevents on IA64 that the variable be accessed without going
through the linkage table at all (i.e. even saving the pointless instruction
resulting from the linker conversion of ltoff22x/ldxmov).
Along with that, it might even lead to ill behavior since the containing
function instances can't be overridden by identically named ones in a different
load module, but the static variables (being weak, but not visibility
restricted) can.

-- 
           Summary: cannot change visibility of static variable in function
                    template
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbeulich at novell dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: ia64-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19238


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-03-21 16:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19238-1068@http.gcc.gnu.org/bugzilla/>
2006-03-21  2:49 ` [Bug c++/19238] cannot change visibility of static variable in function template jason at gcc dot gnu dot org
2006-03-21  3:19 ` jason at gcc dot gnu dot org
2006-03-21 16:33 ` pinskia at gcc dot gnu dot org
2005-01-03 10:52 [Bug c++/19238] New: " jbeulich at novell dot com
2005-01-03 11:05 ` [Bug c++/19238] " giovannibajo at libero dot it
2005-01-03 12:47 ` jbeulich at novell dot com
2005-01-03 13:00 ` giovannibajo at libero dot it
2005-01-03 16:14 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).