re PR fortran/45507 (Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4))
authorJanus Weil <janus@gcc.gnu.org>
Sat, 4 Sep 2010 09:29:11 +0000 (11:29 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Sat, 4 Sep 2010 09:29:11 +0000 (11:29 +0200)
commitb6ff8128de0583a91126718e81c48320aad243ce
treed729152a99901da881cd9e9f83314edc3ea3beb4
parent502ef838c9c03499ccc8f55e0ff86f19c0f66119
re PR fortran/45507 (Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4))

2010-09-04  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45507
* resolve.c (resolve_allocate_expr): Generate default initializers
already at this point, resolve them and put them into expr3, ...
* trans-stmt.c (gfc_trans_allocate): ... instead of waiting until
translation stage.

2010-09-04  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45507
* gfortran.dg/allocate_alloc_opt_12.f90: New.

From-SVN: r163856
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_alloc_opt_12.f90 [new file with mode: 0644]