[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2018-03-19 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |7.4

--- Comment #9 from kargl at gcc dot gnu.org ---
Fixed on 7-branch and trunk.  Thanks for bug report.
Patch does not apply cleanly to 6-branch.

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2018-03-19 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

--- Comment #8 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Mon Mar 19 18:54:29 2018
New Revision: 258654

URL: https://gcc.gnu.org/viewcvs?rev=258654=gcc=rev
Log:
2018-03-19  Steven G. Kargl  

PR fortran/77414
* decl.c (get_proc_name):  Check for a subroutine re-defined in
the contain portion of a subroutine.  Change language of existing
error message to better describe the issue. While here fix whitespace
issues.

2018-03-19  Steven G. Kargl  

PR fortran/77414
* gfortran.dg/pr77414.f90: New test.
* gfortran.dg/internal_references_1.f90: Adjust error message.

Added:
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr77414.f90
Modified:
branches/gcc-7-branch/gcc/fortran/ChangeLog
branches/gcc-7-branch/gcc/fortran/decl.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/testsuite/gfortran.dg/internal_references_1.f90

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2018-03-18 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

--- Comment #7 from kargl at gcc dot gnu.org ---
Author: kargl
Date: Sun Mar 18 17:51:57 2018
New Revision: 258633

URL: https://gcc.gnu.org/viewcvs?rev=258633=gcc=rev
Log:
2018-03-18  Steven G. Kargl  

PR fortran/77414
* decl.c (get_proc_name):  Check for a subroutine re-defined in
the contain portion of a subroutine.  Change language of existing
error message to better describe the issue. While here fix whitespace
issues.

2018-03-18  Steven G. Kargl  

PR fortran/77414
* gfortran.dg/pr77414.f90: New test.
* gfortran.dg/internal_references_1.f90: Adjust error message.

Added:
trunk/gcc/testsuite/gfortran.dg/pr77414.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/internal_references_1.f90

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2018-03-18 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

kargl at gcc dot gnu.org changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|NEW |ASSIGNED
 CC||kargl at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |kargl at gcc dot gnu.org

--- Comment #6 from kargl at gcc dot gnu.org ---
I have patch.

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-12-07 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

--- Comment #5 from Dominique d'Humieres  ---
> > The tests z7.f90, z8.f90, and z9.f90 compiles without error
> > at revision r242002 although I think they are invalid.
> > They give an ICE with r241962.
>
> This is due to r241972 (pr77596).

This is wrong, it is due to patches for pr44265: see
https://gcc.gnu.org/ml/fortran/2016-12/msg00055.html.

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-11-10 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

--- Comment #4 from Dominique d'Humieres  ---
> The tests z7.f90, z8.f90, and z9.f90 compiles without error
> at revision r242002 although I think they are invalid.
> They give an ICE with r241962.

This is due to r241972 (pr77596).

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-11-09 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

Dominique d'Humieres  changed:

   What|Removed |Added

 CC||janus at gcc dot gnu.org

--- Comment #3 from Dominique d'Humieres  ---
The tests z7.f90, z8.f90, and z9.f90 compiles without error at revision r242002
although I think they are invalid. They give an ICE with r241962.

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-09-03 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-09-03
 Ever confirmed|0   |1

--- Comment #2 from Dominique d'Humieres  ---
Confirmed from 4.8 up to trunk (7.0).

[Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410

2016-08-30 Thread gerhard.steinmetz.fort...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414

--- Comment #1 from Gerhard Steinmetz  
---

Backup tests, more variants :

$ cat z2.f90
subroutine s(x)
   real :: x
contains
   subroutine s(x)
  character(*) :: x
   end
end

$ cat z3.f90
subroutine s(x)
   real :: x
contains
   subroutine s(x)
  character(:), allocatable :: x
   end
end

$ cat z4.f90
subroutine s(x)
   character(*) :: x
contains
   subroutine s(x)
  character(:), allocatable :: x
   end
end


---

Generating backtrace from pr44348 :

$ cat z7.f90
subroutine s(x)
   character(*) :: x
contains
   subroutine s(x)
  real :: x
   end
end

$ cat z8.f90
subroutine s(x)
   character(*) :: x
contains
   subroutine s(x)
  real :: x(*)
   end
end

$ cat z9.f90
subroutine s(x)
   character(*) :: x
contains
   subroutine s(x)
  character :: x(*)
   end
end