[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-05 Thread mikael at gcc dot gnu dot org
-- mikael at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mikael at gcc dot gnu dot |dot org

[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-04 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2008-11-04 07:59 --- (In reply to comment #5) > The patch in comment #4 generate a lot of bus errors in my tests. Looking at > it, I think there is something missing: gfc_current_ns->old_cl_list is only > set > to NULL, it should likely b

[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-03 Thread dominiq at lps dot ens dot fr
--- Comment #5 from dominiq at lps dot ens dot fr 2008-11-03 11:02 --- The patch in comment #4 generate a lot of bus errors in my tests. Looking at it, I think there is something missing: gfc_current_ns->old_cl_list is only set to NULL, it should likely be set to gfc_current_ns->cl_list

[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-02 Thread mikael dot morin at tele2 dot fr
--- Comment #4 from mikael dot morin at tele2 dot fr 2008-11-02 18:03 --- Created an attachment (id=16612) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16612&action=view) hackish patch I think I got it. When the statement is rejected, all changes are reverted. However, the nam

[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-02 Thread mikael dot morin at tele2 dot fr
--- Comment #3 from mikael dot morin at tele2 dot fr 2008-11-02 17:50 --- (In reply to comment #1) > First valgrind error: > > ==21621== Invalid read of size 8 > ==21621==at 0x46AAEA: gfc_resolve_expr (resolve.c:4248) > Second valgrind error: > > ==21621== Address 0x65b2ef8 is 4

[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-01 Thread janus at gcc dot gnu dot org
--- Comment #2 from janus at gcc dot gnu dot org 2008-11-01 22:42 --- This is really funny. If I compile a file which contains exactly the three lines given in comment #0 (and nothing else), I get some errors, but no ICE. However, if I add at least two blank lines (no matter where), the

[Bug fortran/37992] [4.4 Regression] ICE segfault for "character(len=len(x)) :: foo,x"

2008-11-01 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-11-01 22:38 --- First valgrind error: ==21621== Invalid read of size 8 ==21621==at 0x46AAEA: gfc_resolve_expr (resolve.c:4248) That is: if (e->symtree == NULL || e->symtree->n.sym == NULL) I think e->expr_type == EXPR_FUNCTIO