re PR fortran/35719 (pointer to zero sized array not associated)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 11 May 2008 20:28:52 +0000 (20:28 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 11 May 2008 20:28:52 +0000 (20:28 +0000)
commit8f0aaee5db5dda4c40b358db7fc622695210dd54
tree513f449bdb1b4bb3020f0ed10b74d5e0e4289e74
parent8ffb4ce0b0e6c2a9cc70d5ecc60d07951ba40f9c
re PR fortran/35719 (pointer to zero sized array not associated)

2008-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/35719
* trans.c (gfc_call_malloc): If size equals zero, allocate one
byte; don't return a null pointer.

2008-05-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/35719
* gfortran.dg/associated_5.f90:  New test.

From-SVN: r135187
gcc/fortran/ChangeLog
gcc/fortran/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/associated_5.f90 [new file with mode: 0644]