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 c/66247] make check-gmp fails for gcc-5.1.0


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66247

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
static const int offset[] = {
-2, -1, 0, 1, 2, 3
};
...
                  for (oindex = 0; oindex <= (int) (sizeof (offset) / sizeof
((offset)[0])); oindex++)
                    {
                      o = offset[oindex];
                      if ((int) isize*(64 - 0) < -o)
                        continue;
(unless the test is exiting the loop through exit (1);) seems to be undefined
behavior, for offset[6] you can only validly takes its address, but not
dereference it.


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