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 libstdc++/52699] infinite loop generated with -O0


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |libstdc++

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-24 08:06:58 UTC ---
>From the looks of it, it looks more like a source (library) issue rather than a
compiler one.  Though I don't know enough of this code to say that.

We are stuck in the following loop:
754          result_type __u;
755          do
756            __u = _M_b() - _M_b.min();
757          while (__u >= __y0);

__y0 is 0 which means the loop is always true.


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