This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 1466528 - gfortran: internal compiler error: in fold_convert_loc, at fold-const.c:2251
gfortran: internal compiler error: in fold_convert_loc, at fold-const.c:2251
Status: NEW
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
25
x86_64 Linux
unspecified Severity unspecified
: ---
: ---
Assigned To: Jakub Jelinek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-29 18:36 EDT by Dominik Gronkiewicz
Modified: 2017-06-29 18:36 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
an example code causing an error (852 bytes, text/plain)
2017-06-29 18:36 EDT, Dominik Gronkiewicz
no flags Details

  None (edit)
Description Dominik Gronkiewicz 2017-06-29 18:36:49 EDT
Created attachment 1292994 [details]
an example code causing an error

$ f95 --version
GNU Fortran (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)
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.

$ f95 -c test.f90 
test.f90:24:0:

           nr = mrx_number(cor .ne. 0, mag .ne. 0, cnd .ne. 0)
 
internal compiler error: in fold_convert_loc, at fold-const.c:2251
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.

Test file causing the error attached.
The error occurs when we specify the C binding name of a procedure which is the same as regular name of another procedure in another module (if in the same module, there is no problem). To my knowledge, the standard does not exclude such possibility (although I am not 100% sure).

Please let me know if I can provide any more information.

Note You need to log in before you can comment on or make changes to this bug.