PR 55905: ICE for polymorphic dummy argument with an allocatable coarray component

Janus Weil janus@gcc.gnu.org
Thu Jan 10 08:24:00 GMT 2013


Hi Damian,

> Could someone please confirm the aforementioned bug

yes, I can confirm it with:

gcc version 4.8.0 20130105 (experimental) [trunk revision 194927] (GCC)

I get the following backtrace:

0xb0d96d crash_signal
        /home/jweil/gcc48/trunk/gcc/toplev.c:334
0x616b10 tree_class_check(tree_node*, tree_code_class, char const*,
int, char const*)
        /home/jweil/gcc48/trunk/gcc/tree.h:3793
0x64366a duplicate_allocatable
        /home/jweil/gcc48/trunk/gcc/fortran/trans-array.c:7334
0x6439cf gfc_duplicate_allocatable(tree_node*, tree_node*, tree_node*, int)
        /home/jweil/gcc48/trunk/gcc/fortran/trans-array.c:7396
0x644d00 structure_alloc_comps
        /home/jweil/gcc48/trunk/gcc/fortran/trans-array.c:7738
0x644ee2 gfc_copy_alloc_comp(gfc_symbol*, tree_node*, tree_node*, int)
        /home/jweil/gcc48/trunk/gcc/fortran/trans-array.c:7790
0x6741e9 gfc_trans_scalar_assign(gfc_se*, gfc_se*, gfc_typespec, bool,
bool, bool)
        /home/jweil/gcc48/trunk/gcc/fortran/trans-expr.c:6841
0x676cf7 gfc_trans_assignment_1
        /home/jweil/gcc48/trunk/gcc/fortran/trans-expr.c:7757
0x677342 gfc_trans_assignment(gfc_expr*, gfc_expr*, bool, bool)
        /home/jweil/gcc48/trunk/gcc/fortran/trans-expr.c:7915
0x677372 gfc_trans_init_assign(gfc_code*)
        /home/jweil/gcc48/trunk/gcc/fortran/trans-expr.c:7921


> and let me know
> the likelihood of a fix making it into stage 3?

Zero (since stage three has already ended two days ago).

To make it into the 4.8 release: Also close to zero (since it's not a
regression: 4.7 gives me a couple of different errors on your test
case).

Cheers,
Janus



> I'm including the
> text of the PR this time:
>
> $ cat dummy_with_coarray_component.f90
> module foo_module
>   type foo
>     logical, allocatable :: x[:]
>   end type
> contains
>   subroutine bar(this)
>     class(foo) this
>   end
> end
>
> $ gfortran -c -fcoarray=single dummy_with_coarray_component.f90
> dummy_with_coarray_component.f90: In function '__copy_foo_module_Foo':
> dummy_with_coarray_component.f90:7:0: internal compiler error: Segmentation
> fault: 11
>      class(foo) this
>  ^
>
> dummy_with_coarray_component.f90:7:0: internal compiler error: Abort trap: 6
> gfortran: internal compiler error: Abort trap: 6 (program f951)
> Abort trap: 6
>
> $ gfortran --version
> GNU Fortran (MacPorts gcc48 4.8-20121223_0) 4.8.0 20121223 (experimental)
>
>
> On Mon, Jan 7, 2013 at 9:49 PM, Damian Rouson <damian@rouson.net> wrote:
>> See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55905.
>>
>> Damian



More information about the Fortran mailing list