[Bug fortran/47853] Assignment of integer to pointer compiles, and a.out segfaults

2011-02-22 Thread rodneyp at physics dot uq.edu.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47853 --- Comment #4 from rodneyp at physics dot uq.edu.au 2011-02-22 23:52:01 UTC --- Sorry - you're right. In the original code, p and a were arrays. The assignment p = a was still legal, but less obviously.

[Bug fortran/47853] Assignment of integer to pointer compiles, and a.out segfaults

2011-02-22 Thread kargl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47853 kargl at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug fortran/47853] Assignment of integer to pointer compiles, and a.out segfaults

2011-02-22 Thread anlauf at gmx dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47853 Harald Anlauf changed: What|Removed |Added CC||anlauf at gmx dot de --- Comment #2 from

[Bug fortran/47853] Assignment of integer to pointer compiles, and a.out segfaults

2011-02-22 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47853 --- Comment #1 from Andrew Pinski 2011-02-22 22:57:15 UTC --- Basically you are accessing p before pointing it to anything.