This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/63642] Linked List Pointer points to itself (on Mac OS)
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Oct 2014 12:19:30 +0000
- Subject: [Bug c/63642] Linked List Pointer points to itself (on Mac OS)
- Auto-submitted: auto-generated
- References: <bug-63642-4 at http dot gcc dot gnu dot org/bugzilla/>
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.