This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug tree-optimization/24172] [4.1 Regression] error: incorrect sharing of tree nodes



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


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