This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/2387: Bad codegen for static local references
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2387: Bad codegen for static local references
- From: jason_merrill at redhat dot com
- Date: 25 Mar 2001 22:20:44 -0000
- Reply-To: jason_merrill at redhat dot com
>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: