This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24172] [4.1 Regression] error: incorrect sharing of tree nodes
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2005 16:54:18 -0000
- Subject: [Bug tree-optimization/24172] [4.1 Regression] error: incorrect sharing of tree nodes
- References: <bug-24172-11423@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-03 16:54 -------
Confirmed, reduced testcase:
void IOException( char);
inline int* dummy( const char* const mode )
{
IOException(*mode+*mode);
}
void prepare_inpaint( )
{
dummy ("rb");
}
The problem is that we have &"rb"[0] and we get *(&"rb"[0]) but we only fold
that to "rb"[0] instead of all the way to 'r'.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-03 16:54:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24172