[Bug fortran/46339] [4.3/4.4/4.5/4.6 Regression] ICE (segfault) in gfc_trans_pointer_assignment

jvdelisle at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Nov 16 03:45:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46339

--- Comment #12 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2010-11-16 02:14:06 UTC ---
The test case in http://gcc.gnu.org/bugzilla/attachment.cgi?id=16885 I believe
is wrong.

The structure type(b) has two components, j and c, where c is a single
character not initialized in the test case.  The integer value of c is 0.

The pointer ptr is of type integer and is set to point to the integer component
of the first element of myA.

Because ptr is of type integer, printing returns the integer storage locations.

I will attached a test case that illustrates this a little better.



More information about the Gcc-bugs mailing list