This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2387: Bad codegen for static local references



>Number:         2387
>Category:       c++
>Synopsis:       Bad codegen for static local references
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 25 14:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jason Merrill
>Release:        CVS
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
We fail to generate a static temporary for binding to a static local reference.  Furthermore, we don't properly limit initialization to the first time through the code.  These two bugs cancel each other to some extent, but both should be fixed.

This was broken in 2.95.2, as well.
>How-To-Repeat:
(will add testcase shortly)
>Fix:
Pass the decl we're binding to for DIRECT_BIND into build_up_reference so we can copy its linkage.  I think Jakub is fixing the repeated initialization bug.
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]