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

jason_merrill@redhat.com jason_merrill@redhat.com
Sun Mar 25 14:26:00 GMT 2001


>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:



More information about the Gcc-prs mailing list