This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47853] Assignment of integer to pointer compiles, and a.out segfaults
- From: "rodneyp at physics dot uq.edu.au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Feb 2011 23:52:07 +0000
- Subject: [Bug fortran/47853] Assignment of integer to pointer compiles, and a.out segfaults
- Auto-submitted: auto-generated
- References: <bug-47853-4@http.gcc.gnu.org/bugzilla/>
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.