http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57373

            Bug ID: 57373
           Summary: ICE on invalid: insert_bbt(): Duplicate key found!
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugs at stellardeath dot org

Created attachment 30165
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30165&action=edit
Minimal test case

The following invalid code (with a number instead of an identifier for the
function argument) produces an internal error:

> cat minimal.f90
  interface foo
    function A(0) result(r)
    function A(0) result(r)
  end interface
> 
> ~/sys/bin/gfortran minimal.f90
minimal.f90:2.15:

    function A(0) result(r)
               1
Error: Expected formal argument list in function definition at (1)
minimal.f90:3.14:

    function A(0) result(r)
              1
Internal Error at (1):
insert_bbt(): Duplicate key found!
> ~/sys/bin/gfortran --version
GNU Fortran (GCC) 4.9.0 20130517 (experimental)
Copyright (C) 2013 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

>

Here, ~/sys/bin/gfortran is self-compiled, however it happens already with
verion 4.7.2 that is supplied with openSUSE 12.3.

Reply via email to