Hide Forgot
Created attachment 526091 [details] Minimal working example of compiler-error-generating code Description of problem: The code attached (and similar constructs) produces an internal compiler error. Version-Release number of selected component (if applicable): GNU Fortran (GCC) 4.6.1 20110908 (Red Hat 4.6.1-9) How reproducible: Only seems to happen with a module procedure that extends the derived type inside the procedure body. Steps to Reproduce: Compile attached source code Actual results: f951: internal compiler error: Segmentation fault Expected results: Compiles normally (no messages) Additional info: Same source compiled with another Fortran compiler works without errors.
I try to compile the code get the same error: [ @ ]$ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.6.1/lto-wrapper Target: i686-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch=i686 --build=i686-redhat-linux Thread model: posix gcc version 4.6.1 20110908 (Red Hat 4.6.1-9) (GCC) [ @ ]$ valgrind gfortran Downloads/type-extends.f90 ==2514== Memcheck, a memory error detector ==2514== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==2514== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==2514== Command: gfortran Downloads/type-extends.f90 ==2514== f951: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. ==2514== ==2514== HEAP SUMMARY: ==2514== in use at exit: 30,925 bytes in 81 blocks ==2514== total heap usage: 195 allocs, 114 frees, 40,876 bytes allocated ==2514== ==2514== LEAK SUMMARY: ==2514== definitely lost: 5,142 bytes in 29 blocks ==2514== indirectly lost: 43 bytes in 3 blocks ==2514== possibly lost: 27 bytes in 2 blocks ==2514== still reachable: 25,713 bytes in 47 blocks ==2514== suppressed: 0 bytes in 0 blocks ==2514== Rerun with --leak-check=full to see details of leaked memory ==2514== ==2514== For counts of detected and suppressed errors, rerun with: -v ==2514== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 8) -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers
Hi Karl, i think this bug is fixed in latest release, Would you please compile your code in: gcc version 4.6.2 20111027 (Red Hat 4.6.2-1) (GCC) ? Let me close this report as "CLOSED/ERRATA" . -- Fedora Bugzappers volunteer triage team https://fedoraproject.org/wiki/BugZappers