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 optimization/14553] segfault involving pointers


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-03-12 15:02 -------
Redux (crashes gcc and g++, just compile with -O3):

===============================================
void foo(int* p)
{
    int i;
    for (i=1; i>0; --i, ++p)
        *p=0;
}

void bar(int* p) { foo(p); }
===============================================

Might be related to PR 14433, where the bug magically disappeared today.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c++                         |optimization
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-03-12 15:02:52
               date|                            |
            Summary|ICE on valid code           |segfault involving pointers


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14553


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