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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> 
2010-11-15 10:14:16 UTC ---
The patch in comment #9 fixes this PR along with pr34640 (and its duplicates),
pr39304, pr40737, and pr41627 (probably also duplicates of pr34640) without
regression. The only problem I have found is that the test in
http://gcc.gnu.org/bugzilla/attachment.cgi?id=16885 compiles now, but abort
with

           1           0           2           0
Abort

(note that the result in test_sub2 is OK).

The patch in comment #10 does not work for me (with Paul's patch for
'reallocate on assignment' and Tobias' one for libquad):

[macbook] f90/bug% gfc pr46339.f90
pr46339.f90: In function 'tao_phase_space_axis':
pr46339.f90:20:0: internal compiler error: tree check: expected tree that
contains 'decl common' structure, have 'nop_expr' in gfc_allocate_lang_decl, at
fortran/trans-decl.c:594

This second patch looks very similar to the one in
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34640#c5 .

Reply via email to