* I thought the following ICE was already fixed - if not, do I have to open a Bugzilla report ?
@ 2016-07-06 18:27 Toon Moene
2016-07-06 18:45 ` Toon Moene
2016-07-06 18:59 ` Thomas Koenig
0 siblings, 2 replies; 3+ messages in thread
From: Toon Moene @ 2016-07-06 18:27 UTC (permalink / raw)
To: fortran; +Cc: R. EL KHATIB
The source code:
SUBROUTINE prtdata(ilen)
INTEGER :: ilen
character(len=ilen), allocatable :: cline(:)
allocate(cline(1))
cline(2) = cline(1)
END SUBROUTINE prtdata
gfortran reacts with an ICE:
~/compilers/install/bin/gfortran --version
GNU Fortran (GCC) 6.1.1 20160706
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
toon@moene:~$ cd src
toon@moene:~/src$ ls el*
elkhatib2.f90 elkhatib.f90
toon@moene:~/src$ ~/compilers/install/bin/gfortran -v elkhatib2.f90
Driving: /home/toon/compilers/install/bin/gfortran -v elkhatib2.f90 -l
gfortran -l m -shared-libgcc
Using built-in specs.
COLLECT_GCC=/home/toon/compilers/install/bin/gfortran
COLLECT_LTO_WRAPPER=/home/toon/compilers/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /home/toon/compilers/gcc-6-branch/configure
--prefix=/home/toon/compilers/install --with-gnu-as --with-gnu-ld
--enable-languages=fortran --disable-multilib --disable-nls
--with-arch=haswell --with-tune=haswell
Thread model: posix
gcc version 6.1.1 20160706 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=haswell' '-march=haswell'
/home/toon/compilers/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.1/f951
elkhatib2.f90 -quiet -dumpbase elkhatib2.f90 -mtune=haswell
-march=haswell -auxbase elkhatib2 -version -fintrinsic-modules-path
/home/toon/compilers/install/lib/gcc/x86_64-pc-linux-gnu/6.1.1/finclude
-o /tmp/ccvXhqk1.s
GNU Fortran (GCC) version 6.1.1 20160706 (x86_64-pc-linux-gnu)
compiled by GNU C version 6.1.1 20160706, GMP version 6.1.1, MPFR
version 3.1.4-p2, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (GCC) version 6.1.1 20160706 (x86_64-pc-linux-gnu)
compiled by GNU C version 6.1.1 20160706, GMP version 6.1.1, MPFR
version 3.1.4-p2, MPC version 1.0.3, isl version 0.15
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
elkhatib2.f90:3:0:
character(len=ilen), allocatable :: cline(:)
internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1851
0x8733ac gimplify_var_or_parm_decl
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:1851
0x87e0ff gimplify_compound_lval
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:2002
0x876916 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10293
0x8809a2 gimplify_modify_expr
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:4708
0x877159 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10341
0x879e66 gimplify_stmt(tree_node**, gimple**)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
0x877b83 gimplify_statement_list
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:1537
0x877b83 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10758
0x879e66 gimplify_stmt(tree_node**, gimple**)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
0x87759a gimplify_and_add(tree_node*, gimple**)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:425
0x87759a gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10680
0x879e66 gimplify_stmt(tree_node**, gimple**)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
0x87a8ed gimplify_bind_expr
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:1142
0x876bc4 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10540
0x879e66 gimplify_stmt(tree_node**, gimple**)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
0x87b02a gimplify_body(tree_node*, bool)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:11487
0x87b3f7 gimplify_function_tree(tree_node*)
/home/toon/compilers/gcc-6-branch/gcc/gimplify.c:11643
0x75d0c7 cgraph_node::analyze()
/home/toon/compilers/gcc-6-branch/gcc/cgraphunit.c:625
0x75fa9f analyze_functions
/home/toon/compilers/gcc-6-branch/gcc/cgraphunit.c:1086
0x760218 symbol_table::finalize_compilation_unit()
/home/toon/compilers/gcc-6-branch/gcc/cgraphunit.c:2542
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: I thought the following ICE was already fixed - if not, do I have to open a Bugzilla report ?
2016-07-06 18:27 I thought the following ICE was already fixed - if not, do I have to open a Bugzilla report ? Toon Moene
@ 2016-07-06 18:45 ` Toon Moene
2016-07-06 18:59 ` Thomas Koenig
1 sibling, 0 replies; 3+ messages in thread
From: Toon Moene @ 2016-07-06 18:45 UTC (permalink / raw)
To: fortran
On 07/06/2016 08:27 PM, Toon Moene wrote:
> The source code:
>
> SUBROUTINE prtdata(ilen)
> INTEGER :: ilen
> character(len=ilen), allocatable :: cline(:)
> allocate(cline(1))
> cline(2) = cline(1)
> END SUBROUTINE prtdata
Paul pointed out to me (privately) that this example is not conforming.
I think the following is:
SUBROUTINE prtdata(ilen)
INTEGER :: ilen
character(len=ilen), allocatable :: cline(:)
allocate(cline(2))
cline(1) = 'a'
cline(2) = cline(1)
END SUBROUTINE prtdata
but it draws the same Internal Compiler Error.
>
> gfortran reacts with an ICE:
>
> ~/compilers/install/bin/gfortran --version
> GNU Fortran (GCC) 6.1.1 20160706
> Copyright (C) 2016 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> toon@moene:~$ cd src
> toon@moene:~/src$ ls el*
> elkhatib2.f90 elkhatib.f90
> toon@moene:~/src$ ~/compilers/install/bin/gfortran -v elkhatib2.f90
> Driving: /home/toon/compilers/install/bin/gfortran -v elkhatib2.f90 -l
> gfortran -l m -shared-libgcc
> Using built-in specs.
> COLLECT_GCC=/home/toon/compilers/install/bin/gfortran
> COLLECT_LTO_WRAPPER=/home/toon/compilers/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.1/lto-wrapper
>
> Target: x86_64-pc-linux-gnu
> Configured with: /home/toon/compilers/gcc-6-branch/configure
> --prefix=/home/toon/compilers/install --with-gnu-as --with-gnu-ld
> --enable-languages=fortran --disable-multilib --disable-nls
> --with-arch=haswell --with-tune=haswell
> Thread model: posix
> gcc version 6.1.1 20160706 (GCC)
> COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=haswell' '-march=haswell'
>
> /home/toon/compilers/install/libexec/gcc/x86_64-pc-linux-gnu/6.1.1/f951
> elkhatib2.f90 -quiet -dumpbase elkhatib2.f90 -mtune=haswell
> -march=haswell -auxbase elkhatib2 -version -fintrinsic-modules-path
> /home/toon/compilers/install/lib/gcc/x86_64-pc-linux-gnu/6.1.1/finclude
> -o /tmp/ccvXhqk1.s
> GNU Fortran (GCC) version 6.1.1 20160706 (x86_64-pc-linux-gnu)
> compiled by GNU C version 6.1.1 20160706, GMP version 6.1.1, MPFR
> version 3.1.4-p2, MPC version 1.0.3, isl version 0.15
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> GNU Fortran2008 (GCC) version 6.1.1 20160706 (x86_64-pc-linux-gnu)
> compiled by GNU C version 6.1.1 20160706, GMP version 6.1.1, MPFR
> version 3.1.4-p2, MPC version 1.0.3, isl version 0.15
> GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
> elkhatib2.f90:3:0:
>
> character(len=ilen), allocatable :: cline(:)
>
> internal compiler error: in gimplify_var_or_parm_decl, at gimplify.c:1851
> 0x8733ac gimplify_var_or_parm_decl
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:1851
> 0x87e0ff gimplify_compound_lval
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:2002
> 0x876916 gimplify_expr(tree_node**, gimple**, gimple**, bool
> (*)(tree_node*), int)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10293
> 0x8809a2 gimplify_modify_expr
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:4708
> 0x877159 gimplify_expr(tree_node**, gimple**, gimple**, bool
> (*)(tree_node*), int)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10341
> 0x879e66 gimplify_stmt(tree_node**, gimple**)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
> 0x877b83 gimplify_statement_list
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:1537
> 0x877b83 gimplify_expr(tree_node**, gimple**, gimple**, bool
> (*)(tree_node*), int)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10758
> 0x879e66 gimplify_stmt(tree_node**, gimple**)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
> 0x87759a gimplify_and_add(tree_node*, gimple**)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:425
> 0x87759a gimplify_expr(tree_node**, gimple**, gimple**, bool
> (*)(tree_node*), int)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10680
> 0x879e66 gimplify_stmt(tree_node**, gimple**)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
> 0x87a8ed gimplify_bind_expr
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:1142
> 0x876bc4 gimplify_expr(tree_node**, gimple**, gimple**, bool
> (*)(tree_node*), int)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:10540
> 0x879e66 gimplify_stmt(tree_node**, gimple**)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:5688
> 0x87b02a gimplify_body(tree_node*, bool)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:11487
> 0x87b3f7 gimplify_function_tree(tree_node*)
> /home/toon/compilers/gcc-6-branch/gcc/gimplify.c:11643
> 0x75d0c7 cgraph_node::analyze()
> /home/toon/compilers/gcc-6-branch/gcc/cgraphunit.c:625
> 0x75fa9f analyze_functions
> /home/toon/compilers/gcc-6-branch/gcc/cgraphunit.c:1086
> 0x760218 symbol_table::finalize_compilation_unit()
> /home/toon/compilers/gcc-6-branch/gcc/cgraphunit.c:2542
> Please submit a full bug report,
> with preprocessed source if appropriate.
> Please include the complete backtrace with any bug report.
> See <http://gcc.gnu.org/bugs.html> for instructions.
>
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/
Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: I thought the following ICE was already fixed - if not, do I have to open a Bugzilla report ?
2016-07-06 18:27 I thought the following ICE was already fixed - if not, do I have to open a Bugzilla report ? Toon Moene
2016-07-06 18:45 ` Toon Moene
@ 2016-07-06 18:59 ` Thomas Koenig
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Koenig @ 2016-07-06 18:59 UTC (permalink / raw)
To: Toon Moene, fortran; +Cc: R. EL KHATIB
Hi Toon,
> SUBROUTINE prtdata(ilen)
> INTEGER :: ilen
> character(len=ilen), allocatable :: cline(:)
> allocate(cline(1))
> cline(2) = cline(1)
> END SUBROUTINE prtdata
>
> gfortran reacts with an ICE:
Yes, this is something I have not encountered before (possibly a
regression from the recent fix...)
Please open a new PR.
Regards
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-06 18:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-06 18:27 I thought the following ICE was already fixed - if not, do I have to open a Bugzilla report ? Toon Moene
2016-07-06 18:45 ` Toon Moene
2016-07-06 18:59 ` Thomas Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).