Bug 785433 - internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:1080
Summary: internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:1080
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-28 23:17 UTC by Orion Poplawski
Modified: 2012-02-06 16:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-30 21:03:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Preprocessed x09f.f90 (10.99 KB, text/plain)
2012-01-28 23:17 UTC, Orion Poplawski
no flags Details
plplot.mod (202.89 KB, audio/x-mod)
2012-01-28 23:22 UTC, Orion Poplawski
no flags Details
plf95demolib.mod (202.19 KB, text/plain)
2012-01-29 21:11 UTC, Orion Poplawski
no flags Details
plf95demolib.mod (205.37 KB, text/plain)
2012-01-30 15:14 UTC, Orion Poplawski
no flags Details
plf95demolib.f90 (2.15 KB, text/plain)
2012-01-30 17:08 UTC, Orion Poplawski
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 52059 0 None None None Never

Description Orion Poplawski 2012-01-28 23:17:40 UTC
Created attachment 558094 [details]
Preprocessed x09f.f90

Description of problem:

While building plplot in rawhide:

cd /builddir/build/BUILD/plplot-5.9.9/fedora/examples/f95 && /usr/bin/gfortran   -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -I/builddir/build/BUILD/plplot-5.9.9/fedora/bindings/f95 -I/builddir/build/BUILD/plplot-5.9.9/fedora/examples/f95    -c /builddir/build/BUILD/plplot-5.9.9/examples/f95/x09f.f90 -o CMakeFiles/x09f95.dir/x09f.f90.o
/builddir/build/BUILD/plplot-5.9.9/examples/f95/x09f.f90:152.22:
        lev(NLEVEL), t, r, theta, delta
                      1
Warning: Unused variable 't' declared at (1)
/builddir/build/BUILD/plplot-5.9.9/examples/f95/x09f.f90: In function 'x09f95':
/builddir/build/BUILD/plplot-5.9.9/examples/f95/x09f.f90:66:0: internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:1080

Full log:

http://koji.fedoraproject.org/koji/getfile?taskID=3742426&name=build.log


Version-Release number of selected component (if applicable):
4.7.0-0.10.fc17

Comment 1 Orion Poplawski 2012-01-28 23:22:40 UTC
Created attachment 558096 [details]
plplot.mod

Comment 2 Orion Poplawski 2012-01-29 00:22:59 UTC
Compiles fine with 4.6.2-1.fc16

Comment 3 Jakub Jelinek 2012-01-29 08:15:51 UTC
plf95demolib.mod hasn't been provided.

Comment 4 Orion Poplawski 2012-01-29 21:11:11 UTC
Created attachment 558221 [details]
plf95demolib.mod

Comment 5 Jakub Jelinek 2012-01-30 11:30:42 UTC
That last mod file looks to be gcc 4.6* generated rather than 4.7.

Comment 6 Orion Poplawski 2012-01-30 15:14:59 UTC
Created attachment 558361 [details]
plf95demolib.mod

Sorry about that, this should be the right one.

Comment 7 Jakub Jelinek 2012-01-30 17:01:15 UTC
Narrowed down to:
program x09f95
    use plf95demolib
    integer, parameter :: nptsx=35, xdim=99
    real(kind=8)   :: xg1(xdim), distort
    xg1 = foo (arange(0,nptsx) / dble(nptsx-1), distort)
contains
elemental real(kind=8) function foo( coord, factor )
    real(kind=8), intent(in) :: coord, factor
    foo = 1
end function foo
end program x09f95

but it doesn't fail without the plf95demolib use, could you please attach the *.f90 file in which the module is defined?

Comment 8 Orion Poplawski 2012-01-30 17:08:17 UTC
Created attachment 558410 [details]
plf95demolib.f90

Comment 9 Aravind vijayan 2012-01-31 03:46:31 UTC
The upstream Link:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52059



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 10 Jakub Jelinek 2012-01-31 08:44:01 UTC
That link is already in the External Trackers section.

Comment 11 Orion Poplawski 2012-02-06 16:27:20 UTC
Can we get this into rawhide soon (before the branch maybe)?  I can't build plplot until this gets in and I need to fix broken dependencies.  Thanks!


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