public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer
@ 2021-10-24 18:48 anlauf at gcc dot gnu.org
  2021-10-24 18:49 ` [Bug fortran/102917] " anlauf at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-10-24 18:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102917
           Summary: [PDT] KIND and LEN type parameters shall not be
                    restricted to default integer
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: anlauf at gcc dot gnu.org
  Target Milestone: ---

Reported by Steve:

https://gcc.gnu.org/pipermail/fortran/2021-October/056771.html

We reject valid code.

F2003 has in section 4.5.2 on page 48:

   R435 type-param-def-stmt  is INTEGER [ kind-selector ] , ...

   Each type parameter is itself of type integer.  If its kind selector
   is omitted, the kind type parameter is default integer.

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

* [Bug fortran/102917] [PDT] KIND and LEN type parameters shall not be restricted to default integer
  2021-10-24 18:48 [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer anlauf at gcc dot gnu.org
@ 2021-10-24 18:49 ` anlauf at gcc dot gnu.org
  2021-10-24 19:01 ` anlauf at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-10-24 18:49 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |kargl at gcc dot gnu.org
           Keywords|                            |rejects-valid
   Last reconfirmed|                            |2021-10-24
             Status|UNCONFIRMED                 |NEW

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

* [Bug fortran/102917] [PDT] KIND and LEN type parameters shall not be restricted to default integer
  2021-10-24 18:48 [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer anlauf at gcc dot gnu.org
  2021-10-24 18:49 ` [Bug fortran/102917] " anlauf at gcc dot gnu.org
@ 2021-10-24 19:01 ` anlauf at gcc dot gnu.org
  2021-10-26 18:55 ` 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 @ 2021-10-24 19:01 UTC (permalink / raw)
  To: gcc-bugs

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

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 #1 from anlauf at gcc dot gnu.org ---
Submitted: https://gcc.gnu.org/pipermail/fortran/2021-October/056791.html

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

* [Bug fortran/102917] [PDT] KIND and LEN type parameters shall not be restricted to default integer
  2021-10-24 18:48 [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer anlauf at gcc dot gnu.org
  2021-10-24 18:49 ` [Bug fortran/102917] " anlauf at gcc dot gnu.org
  2021-10-24 19:01 ` anlauf at gcc dot gnu.org
@ 2021-10-26 18:55 ` cvs-commit at gcc dot gnu.org
  2021-10-27 19:26 ` cvs-commit at gcc dot gnu.org
  2021-10-27 19:30 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-26 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199

commit r12-4720-gcfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue Oct 26 20:54:41 2021 +0200

    Fortran: do not restrict PDT KIND and LEN type parameters to default
integer

    gcc/fortran/ChangeLog:

            PR fortran/102917
            * decl.c (match_attr_spec): Remove invalid integer kind checks on
            KIND and LEN attributes of PDTs.

    gcc/testsuite/ChangeLog:

            PR fortran/102917
            * gfortran.dg/pdt_4.f03: Adjust testcase.

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

* [Bug fortran/102917] [PDT] KIND and LEN type parameters shall not be restricted to default integer
  2021-10-24 18:48 [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer anlauf at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-10-26 18:55 ` cvs-commit at gcc dot gnu.org
@ 2021-10-27 19:26 ` cvs-commit at gcc dot gnu.org
  2021-10-27 19:30 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-27 19:26 UTC (permalink / raw)
  To: gcc-bugs

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

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

https://gcc.gnu.org/g:5782bacacada41c0240f5aceb42dcdf78e7042da

commit r11-9191-g5782bacacada41c0240f5aceb42dcdf78e7042da
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue Oct 26 20:54:41 2021 +0200

    Fortran: do not restrict PDT KIND and LEN type parameters to default
integer

    gcc/fortran/ChangeLog:

            PR fortran/102917
            * decl.c (match_attr_spec): Remove invalid integer kind checks on
            KIND and LEN attributes of PDTs.

    gcc/testsuite/ChangeLog:

            PR fortran/102917
            * gfortran.dg/pdt_4.f03: Adjust testcase.

    (cherry picked from commit cfcb27cfcb1d32b8cf7bc463cc1fc5cacae8d199)

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

* [Bug fortran/102917] [PDT] KIND and LEN type parameters shall not be restricted to default integer
  2021-10-24 18:48 [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer anlauf at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-10-27 19:26 ` cvs-commit at gcc dot gnu.org
@ 2021-10-27 19:30 ` anlauf at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: anlauf at gcc dot gnu.org @ 2021-10-27 19:30 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

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

--- Comment #4 from anlauf at gcc dot gnu.org ---
Fixed for gcc-12 and on 11-branch.  Closing.

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

end of thread, other threads:[~2021-10-27 19:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24 18:48 [Bug fortran/102917] New: [PDT] KIND and LEN type parameters shall not be restricted to default integer anlauf at gcc dot gnu.org
2021-10-24 18:49 ` [Bug fortran/102917] " anlauf at gcc dot gnu.org
2021-10-24 19:01 ` anlauf at gcc dot gnu.org
2021-10-26 18:55 ` cvs-commit at gcc dot gnu.org
2021-10-27 19:26 ` cvs-commit at gcc dot gnu.org
2021-10-27 19:30 ` 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).