public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70
@ 2020-06-15 18:43 gscfq@t-online.de
  2020-06-15 19:12 ` [Bug fortran/95688] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2020-06-15 18:43 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95688

            Bug ID: 95688
           Summary: ICE in gfc_get_string, at fortran/iresolve.c:70
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Happens between name length 45 (ok) and 46 (ICE) :


$ cat z1_45.f90
module m23456789012345678901234567890123456789012345
   interface
      module subroutine s23456789012345678901234567890123456789012345
      end
   end interface
end
submodule(m23456789012345678901234567890123456789012345) &
   n23456789012345678901234567890123456789012345
   character(:), pointer :: x23456789012345678901234567890123456789012345 =>
null()
end


$ cat z1_46.f90
module m234567890123456789012345678901234567890123456
   interface
      module subroutine s234567890123456789012345678901234567890123456
      end
   end interface
end
submodule(m234567890123456789012345678901234567890123456) &
   n234567890123456789012345678901234567890123456
   character(:), pointer :: x234567890123456789012345678901234567890123456 =>
null()
end


$ cat z1_63.f90
module m23456789012345678901234567890123456789012345678901234567890123
   interface
      module subroutine
s23456789012345678901234567890123456789012345678901234567890123
      end
   end interface
end
submodule(m23456789012345678901234567890123456789012345678901234567890123) &
   n23456789012345678901234567890123456789012345678901234567890123
   character(:), pointer ::
x23456789012345678901234567890123456789012345678901234567890123 => null()
end


$ gfortran-11-20200614 -c z1_45.f90
$
$ gfortran-11-20200614 -c z1_46.f90
f951: internal compiler error: identifier overflow: 147
0x6562b9 gfc_report_diagnostic
        ../../gcc/fortran/error.c:782
0x6579da gfc_internal_error(char const*, ...)
        ../../gcc/fortran/error.c:1402
0x67f2d7 gfc_get_string(char const*, ...)
        ../../gcc/fortran/iresolve.c:70
0x720c90 gfc_create_string_length
        ../../gcc/fortran/trans-decl.c:1353
0x729317 gfc_get_symbol_decl(gfc_symbol*)
        ../../gcc/fortran/trans-decl.c:1765
0x72c188 gfc_create_module_variable
        ../../gcc/fortran/trans-decl.c:5302
0x6eb7d2 do_traverse_symtree
        ../../gcc/fortran/symbol.c:4162
0x72c98b gfc_generate_module_vars(gfc_namespace*)
        ../../gcc/fortran/trans-decl.c:5801
0x707684 gfc_generate_module_code(gfc_namespace*)
        ../../gcc/fortran/trans.c:2238
0x6b4501 translate_all_program_units
        ../../gcc/fortran/parse.c:6293
0x6b4501 gfc_parse_file()
        ../../gcc/fortran/parse.c:6545
0x70036f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/95688] ICE in gfc_get_string, at fortran/iresolve.c:70
  2020-06-15 18:43 [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70 gscfq@t-online.de
@ 2020-06-15 19:12 ` marxin at gcc dot gnu.org
  2020-06-16 19:51 ` anlauf at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-06-15 19:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95688

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-06-15
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |pault at gcc dot gnu.org

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r6-1958-g4668d6f9c00d4767.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/95688] ICE in gfc_get_string, at fortran/iresolve.c:70
  2020-06-15 18:43 [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70 gscfq@t-online.de
  2020-06-15 19:12 ` [Bug fortran/95688] " marxin at gcc dot gnu.org
@ 2020-06-16 19:51 ` anlauf at gcc dot gnu.org
  2020-06-20 14:14 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-06-16 19:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95688

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org
             Status|NEW                         |ASSIGNED
           Priority|P3                          |P4
           Assignee|unassigned at gcc dot gnu.org      |anlauf at gcc dot gnu.org

--- Comment #2 from anlauf at gcc dot gnu.org ---
Patch posted for review:

https://gcc.gnu.org/pipermail/fortran/2020-June/054534.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/95688] ICE in gfc_get_string, at fortran/iresolve.c:70
  2020-06-15 18:43 [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70 gscfq@t-online.de
  2020-06-15 19:12 ` [Bug fortran/95688] " marxin at gcc dot gnu.org
  2020-06-16 19:51 ` anlauf at gcc dot gnu.org
@ 2020-06-20 14:14 ` cvs-commit at gcc dot gnu.org
  2020-06-22 19:30 ` cvs-commit at gcc dot gnu.org
  2020-06-23 20:46 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-20 14:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95688

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:cd6546ac0e8fb2f4ff2a4bb2db2363ca02bdb7ba

commit r11-1569-gcd6546ac0e8fb2f4ff2a4bb2db2363ca02bdb7ba
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sat Jun 20 16:14:00 2020 +0200

    PR fortran/95688 - ICE in gfc_get_string, at fortran/iresolve.c:70

    With submodules, name mangling of character pointer declarations produces
long
    internal symbols that overflowed a static internal buffer.  Adjust the
buffer
    size.

    gcc/fortran/
            PR fortran/95688
            * iresolve.c (gfc_get_string): Enlarge static buffer size.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/95688] ICE in gfc_get_string, at fortran/iresolve.c:70
  2020-06-15 18:43 [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2020-06-20 14:14 ` cvs-commit at gcc dot gnu.org
@ 2020-06-22 19:30 ` cvs-commit at gcc dot gnu.org
  2020-06-23 20:46 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-06-22 19:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95688

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:905aaaa6a5f1874eb85c74e439c4058b1e5c936b

commit r10-8340-g905aaaa6a5f1874eb85c74e439c4058b1e5c936b
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Sat Jun 20 16:14:00 2020 +0200

    PR fortran/95688 - ICE in gfc_get_string, at fortran/iresolve.c:70

    With submodules, name mangling of character pointer declarations produces
long
    internal symbols that overflowed a static internal buffer.  Adjust the
buffer
    size.

    gcc/fortran/
            PR fortran/95688
            * iresolve.c (gfc_get_string): Enlarge static buffer size.

    (cherry picked from commit cd6546ac0e8fb2f4ff2a4bb2db2363ca02bdb7ba)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug fortran/95688] ICE in gfc_get_string, at fortran/iresolve.c:70
  2020-06-15 18:43 [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70 gscfq@t-online.de
                   ` (3 preceding siblings ...)
  2020-06-22 19:30 ` cvs-commit at gcc dot gnu.org
@ 2020-06-23 20:46 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2020-06-23 20:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95688

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from anlauf at gcc dot gnu.org ---
Fixed on master for GCC-11, and backported to 10-branch.

Backporting further would involve backports from other PRs and is probably
not worth it.  Thus closing.

Thanks for the report!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-23 20:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 18:43 [Bug fortran/95688] New: ICE in gfc_get_string, at fortran/iresolve.c:70 gscfq@t-online.de
2020-06-15 19:12 ` [Bug fortran/95688] " marxin at gcc dot gnu.org
2020-06-16 19:51 ` anlauf at gcc dot gnu.org
2020-06-20 14:14 ` cvs-commit at gcc dot gnu.org
2020-06-22 19:30 ` cvs-commit at gcc dot gnu.org
2020-06-23 20:46 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).