This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR35810 - [TR 15581 / F2003] Automatic reallocation on assignment to allocatable variables


Janus,

Using -fno-realloc-lhs to compile realloc_on_assign_2.f03 is bound to
produce a segfault.  That does not trouble me.

On the other hand, the ICE with -frealloc-lhs does.  Would you be so
kind as to produce a backtrace leading up to the ICE.

Thanks

Paul


On Mon, Nov 29, 2010 at 10:47 AM, Janus Weil <janus@gcc.gnu.org> wrote:
> Sorry, guys. The problem persists, even after rebuilding from scratch
> with a clean tree, r167234. My configure line is:
>
> $GCC_DIR/trunk/configure --program-suffix=-4.6 --prefix=/usr
> --libdir=/usr/lib64 --libexecdir=/usr/lib64
> --enable-languages=c,fortran --enable-checking --disable-bootstrap
> --disable-multilib --enable-lto
>
> Anything wrong with that?
>
> What happens is:
>
>> gfortran-4.6 -fno-realloc-lhs realloc_on_assign_2.f03
>> ./a.out
> Segmentation fault
>
>> gfortran-4.6 -frealloc-lhs realloc_on_assign_2.f03
> realloc_on_assign_2.f03: In function ‘test5’:
> realloc_on_assign_2.f03:101:0: internal compiler error: in
> fold_convert_loc, at fold-const.c:1907
>
> Cheers,
> Janus
>
>
>
> 2010/11/29 Paul Richard Thomas <paul.richard.thomas@gmail.com>:
>> Dear Janus,
>>
>> Works for me on x86_64 - cf. Jerry's message.
>>
>> As Jerry says, do a clean build. ?I have had the -f(no)-realloc-lhs
>> not "take" on several occasions. ?The option is accepted but it does
>> nothing. ?Something wrong with the build dependencies?
>>
>> Cheers
>>
>> Paul
>>
>> On Sun, Nov 28, 2010 at 8:48 PM, Janus Weil <janus@gcc.gnu.org> wrote:
>>> Hi Paul,
>>>
>>>> Committed as revision 167220.
>>>
>>> your second test case fails for me on x86_64-unknown-linux-gnu:
>>>
>>>> gfortran-4.6 realloc_on_assign_2.f03
>>> realloc_on_assign_2.f03: In function ‘test5’:
>>> realloc_on_assign_2.f03:101:0: internal compiler error: in
>>> fold_convert_loc, at fold-const.c:1907
>>>
>>> Cheers,
>>> Janus
>>>
>>
>>
>>
>> --
>> The knack of flying is learning how to throw yourself at the ground and miss.
>> ? ? ?? --Hitchhikers Guide to the Galaxy
>>
>



-- 
The knack of flying is learning how to throw yourself at the ground and miss.
? ? ?? --Hitchhikers Guide to the Galaxy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]