public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120
       [not found] <bug-88552-4@http.gcc.gnu.org/bugzilla/>
@ 2023-05-31 21:08 ` anlauf at gcc dot gnu.org
  2023-06-01 19:06 ` anlauf at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-05-31 21:08 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2018-12-19 00:00:00         |2023-5-31
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #3 from anlauf at gcc dot gnu.org ---
I'm testing the following patch:

diff --git a/gcc/fortran/decl.cc b/gcc/fortran/decl.cc
index 1de2b231242..2162b62608a 100644
--- a/gcc/fortran/decl.cc
+++ b/gcc/fortran/decl.cc
@@ -3366,6 +3372,7 @@ close_brackets:
       else
        gfc_error ("Missing right parenthesis at %C");
       m = MATCH_ERROR;
+      goto no_match;
     }
   else
      /* All tests passed.  */
@@ -4716,6 +4723,9 @@ get_kind:
       return MATCH_ERROR;
     }

+  if (m == MATCH_ERROR)
+    return MATCH_ERROR;
+
   /* Defer association of the KIND expression of function results
      until after USE and IMPORT statements.  */
   if ((gfc_current_state () == COMP_NONE && gfc_error_flag_test ())

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

* [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120
       [not found] <bug-88552-4@http.gcc.gnu.org/bugzilla/>
  2023-05-31 21:08 ` [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 anlauf at gcc dot gnu.org
@ 2023-06-01 19:06 ` anlauf at gcc dot gnu.org
  2023-06-01 21:04 ` cvs-commit at gcc dot gnu.org
  2023-06-01 21:13 ` anlauf at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-06-01 19:06 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #4 from anlauf at gcc dot gnu.org ---
Submitted: https://gcc.gnu.org/pipermail/fortran/2023-June/059358.html

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

* [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120
       [not found] <bug-88552-4@http.gcc.gnu.org/bugzilla/>
  2023-05-31 21:08 ` [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 anlauf at gcc dot gnu.org
  2023-06-01 19:06 ` anlauf at gcc dot gnu.org
@ 2023-06-01 21:04 ` cvs-commit at gcc dot gnu.org
  2023-06-01 21:13 ` anlauf at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-06-01 21:04 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 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:ff8f45d20f9ea6acc99442ad29212d177f58e8fe

commit r14-1477-gff8f45d20f9ea6acc99442ad29212d177f58e8fe
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Thu Jun 1 23:04:30 2023 +0200

    Fortran: force error on bad KIND specifier [PR88552]

    gcc/fortran/ChangeLog:

            PR fortran/88552
            * decl.cc (gfc_match_kind_spec): Use error path on missing right
            parenthesis.
            (gfc_match_decl_type_spec): Use error return when an error occurred
            during matching a KIND specifier.

    gcc/testsuite/ChangeLog:

            PR fortran/88552
            * gfortran.dg/pr88552.f90: New test.

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

* [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120
       [not found] <bug-88552-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2023-06-01 21:04 ` cvs-commit at gcc dot gnu.org
@ 2023-06-01 21:13 ` anlauf at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-06-01 21:13 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
   Target Milestone|---                         |14.0

--- Comment #6 from anlauf at gcc dot gnu.org ---
Fixed for gcc-14.  Closing.

Thanks for the report!

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

end of thread, other threads:[~2023-06-01 21:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-88552-4@http.gcc.gnu.org/bugzilla/>
2023-05-31 21:08 ` [Bug fortran/88552] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120 anlauf at gcc dot gnu.org
2023-06-01 19:06 ` anlauf at gcc dot gnu.org
2023-06-01 21:04 ` cvs-commit at gcc dot gnu.org
2023-06-01 21:13 ` 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).