This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31809] [4.1/4.2/4.3 Regression] sometimes TREE_READONLY is still set for non read only variables causing wrong code
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 May 2007 16:32:58 -0000
- Subject: [Bug c++/31809] [4.1/4.2/4.3 Regression] sometimes TREE_READONLY is still set for non read only variables causing wrong code
- References: <bug-31809-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from mark at codesourcery dot com 2007-05-31 16:32 -------
Subject: Re: [4.1/4.2/4.3 Regression] sometimes TREE_READONLY
is still set for non read only variables causing wrong code
jakub at gcc dot gnu dot org wrote:
> 2007-05-31 Jakub Jelinek <jakub@redhat.com>
>
> PR c++/31806
> * decl.c (cp_finish_decl): Also clear was_readonly if a static var
> needs runtime initialization.
This patch is OK.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31809