Launchpad has imported 11 comments from the remote bug at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70350.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://documentation.ubuntu.com/launchpad/user/reference/bugs/multi-project-bugs/about-multi-project-bugs/#bugs-in-external-trackers. ------------------------------------------------------------------------ On 2016-03-22T08:16:47+00:00 Valeryweber wrote: Hi All The following code is producing an ICE with -fcheck=all. v gcc version 5.3.1 20160318 cat tmp.f90 MODULE system IMPLICIT NONE PRIVATE TYPE, PUBLIC :: paraw_t INTEGER, ALLOCATABLE, DIMENSION(:,:) :: nwa12 END TYPE paraw_t TYPE(paraw_t), SAVE, PUBLIC :: paraw END MODULE system MODULE system_utils USE system, ONLY: paraw_t IMPLICIT NONE PRIVATE CONTAINS SUBROUTINE alloc_paraw( paraw, max_nproc ) TYPE(paraw_t), INTENT(INOUT) :: paraw INTEGER, INTENT(IN) :: max_nproc INTEGER :: ierr ALLOCATE( paraw%nwa12(0:max_nproc,2), & & STAT=ierr ) paraw%nwa12 = HUGE(0) END SUBROUTINE alloc_paraw END MODULE system_utils gfortran -fcheck=all tmp.f90 tmp.f90:21:0: paraw%nwa12 = HUGE(0) 1 internal compiler error: in wide_int_to_tree, at tree.c:1464 0x10c03da7 wide_int_to_tree(tree_node*, generic_wide_int<wide_int_ref_storage<false> > const&) ../../src/gcc/tree.c:1464 0x10c036c3 build_int_cst(tree_node*, long) ../../src/gcc/tree.c:1272 0x1063d127 gfc_trans_assignment_1 ../../src/gcc/fortran/trans-expr.c:9127 0x10621d37 trans_code ../../src/gcc/fortran/trans.c:1711 0x10621d37 gfc_trans_code(gfc_code*) ../../src/gcc/fortran/trans.c:2020 0x1062e1bb gfc_generate_function_code(gfc_namespace*) ../../src/gcc/fortran/trans-decl.c:5927 0x10e984cf gfc_generate_module_code(gfc_namespace*) ../../src/gcc/fortran/trans.c:2087 0x105da05b translate_all_program_units ../../src/gcc/fortran/parse.c:5393 0x105da05b gfc_parse_file() ../../src/gcc/fortran/parse.c:5603 0x10e92207 gfc_be_parse_file ../../src/gcc/fortran/f95-lang.c:229 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/0 ------------------------------------------------------------------------ On 2016-03-22T08:28:56+00:00 Dominiq wrote: Confirmed with gcc version 5.3.1 20160320 r234355. However the test compiles with 5.3.0 and trunk (6.0). Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/1 ------------------------------------------------------------------------ On 2016-03-24T09:00:14+00:00 Dominiq wrote: It is caused by revision r234093. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/2 ------------------------------------------------------------------------ On 2016-04-24T14:02:28+00:00 Janus-h wrote: Unfortunately this bug affects versions shipping with Debian and Ubuntu, e.g. gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) which is the version included in the lastest Ubuntu release 16.04. See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819367 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/3 ------------------------------------------------------------------------ On 2016-04-24T14:09:12+00:00 Janus-h wrote: Looks very related to PR 69385 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/4 ------------------------------------------------------------------------ On 2016-05-10T08:02:11+00:00 F-bugs wrote: I also stumbled upon this, it seems. I can contribute a somewhat smaller test case, maybe this might help you. ! compile with ! gfortran -fcheck=all module m type subtype real, allocatable :: array(:) end type subtype type object type(subtype), allocatable :: array_of_subtypes(:,:,:) end type object contains subroutine allocate_objects(this) class(object), intent(inout) :: this allocate(this%array_of_subtypes(1,2,3)) end subroutine end module m I get an ICE on 5.3.1 20160412, but not on 5.3.0 and neither on 6.1.0 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/7 ------------------------------------------------------------------------ On 2016-05-10T10:31:45+00:00 Maximilien Levesque wrote: I confirm on 5.3.1 20160413 A very small contribution (In reply to Lorenz Hüdepohl from comment #5) to make the example self-sufficient: ! compile with ! gfortran -fcheck=all program m type subtype real, allocatable :: array(:) end type subtype type object type(subtype), allocatable :: array_of_subtypes(:,:,:) end type object contains subroutine allocate_objects(this) class(object), intent(inout) :: this allocate(this%array_of_subtypes(1,2,3)) end subroutine end program m Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/8 ------------------------------------------------------------------------ On 2016-05-31T20:04:53+00:00 Kristopher-kuhlman wrote: I can confirm this problem, but I didn't upload my similar 13-line test case. Will a fix for this make it into 5.3.1 eventually? It is a real bummer that --fcheck=all crashes gfortran on Ubuntu 16.04 LTS, which will be supported for nearly 5 more years. gfortran --version GNU Fortran (Ubuntu 5.3.1-14ubuntu2) 5.3.1 20160413 Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/9 ------------------------------------------------------------------------ On 2016-06-02T17:45:31+00:00 Pault-8 wrote: Author: pault Date: Thu Jun 2 17:44:59 2016 New Revision: 237043 URL: https://gcc.gnu.org/viewcvs?rev=237043&root=gcc&view=rev Log: 2016-06-02 Paul Thomas <[email protected]> PR fortran/70350 Backport from trunk. * trans-expr.c (gfc_trans_assignment_1): Exclude initialization assignments from check on assignment of scalars to unassigned arrays and correct wrong code within the corresponding block. Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-expr.c Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/10 ------------------------------------------------------------------------ On 2016-06-02T17:49:06+00:00 Pault-8 wrote: I have backported the fix from trunk/6-branch. I didn't add a testcase since The probability of any further changes causing a regression is zero. Thanks for the report. I am sorry that this has caused some inconvenience. However, as a volunteer, sometimes life outside gfortran intervenes, as it did here. Paul Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/11 ------------------------------------------------------------------------ On 2016-06-03T22:54:40+00:00 Kristopher-kuhlman wrote: Thank you for the effort. On Thursday, June 2, 2016, pault at gcc dot gnu.org < [email protected]> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70350 > > Paul Thomas <pault at gcc dot gnu.org> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > Status|NEW |RESOLVED > Resolution|--- |FIXED > > --- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> --- > I have backported the fix from trunk/6-branch. I didn't add a testcase > since > The probability of any further changes causing a regression is zero. > > Thanks for the report. I am sorry that this has caused some inconvenience. > However, as a volunteer, sometimes life outside gfortran intervenes, as it > did > here. > > Paul > > -- > You are receiving this mail because: > You are on the CC list for the bug. Reply at: https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1576212/comments/12 ** Changed in: gcc Status: Unknown => Fix Released ** Changed in: gcc Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1576212 Title: internal compiler error: in wide_int_to_tree, at tree.c:1464 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/1576212/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
