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/63642] Linked List Pointer points to itself (on Mac OS)


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

--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling the "right version" with gcc or clang gives the same result at run
time:

Please, enter a monome (for example x) : x
Address of the first element : 0x0
0

So the problem is likely in your code.

Note that lists are widely used in gcc.


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