public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/86148] parameterized type compile time error
       [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
@ 2020-07-13 21:29 ` dominiq at lps dot ens.fr
  2021-03-22 21:07 ` van.snyder at sbcglobal dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens.fr @ 2020-07-13 21:29 UTC (permalink / raw)
  To: gcc-bugs

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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

* [Bug fortran/86148] parameterized type compile time error
       [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
  2020-07-13 21:29 ` [Bug fortran/86148] parameterized type compile time error dominiq at lps dot ens.fr
@ 2021-03-22 21:07 ` van.snyder at sbcglobal dot net
  2021-03-22 21:53 ` van.snyder at sbcglobal dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: van.snyder at sbcglobal dot net @ 2021-03-22 21:07 UTC (permalink / raw)
  To: gcc-bugs

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

van.snyder at sbcglobal dot net <van.snyder at sbcglobal dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |van.snyder at sbcglobal dot net

--- Comment #4 from van.snyder at sbcglobal dot net <van.snyder at sbcglobal dot net> ---
Created attachment 50452
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50452&action=edit
PDT failure to compile

                                                      1
Error: Type mismatch in argument ârotationsâ at (1); passed
TYPE(Pdtrotations_t_8) to TYPE(pdtrotations_t_8)

from gfortran 8.0.3-6.

make -f Make-Sort

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

* [Bug fortran/86148] parameterized type compile time error
       [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
  2020-07-13 21:29 ` [Bug fortran/86148] parameterized type compile time error dominiq at lps dot ens.fr
  2021-03-22 21:07 ` van.snyder at sbcglobal dot net
@ 2021-03-22 21:53 ` van.snyder at sbcglobal dot net
  2024-01-20 18:51 ` ctechnodev at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: van.snyder at sbcglobal dot net @ 2021-03-22 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from van.snyder at sbcglobal dot net <van.snyder at sbcglobal dot net> ---
Actually from gfortran 8.3.0-6, not 8.0.3-6.

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

* [Bug fortran/86148] parameterized type compile time error
       [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-03-22 21:53 ` van.snyder at sbcglobal dot net
@ 2024-01-20 18:51 ` ctechnodev at gmail dot com
  2024-02-29  2:15 ` cvs-commit at gcc dot gnu.org
  2024-02-29 19:43 ` alexanderw at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: ctechnodev at gmail dot com @ 2024-01-20 18:51 UTC (permalink / raw)
  To: gcc-bugs

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

Alexander Westbrooks <ctechnodev at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ctechnodev at gmail dot com

--- Comment #6 from Alexander Westbrooks <ctechnodev at gmail dot com> ---
Created attachment 57177
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57177&action=edit
Proposed Patch to fix PR82943, PR86148, PR86268

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

* [Bug fortran/86148] parameterized type compile time error
       [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2024-01-20 18:51 ` ctechnodev at gmail dot com
@ 2024-02-29  2:15 ` cvs-commit at gcc dot gnu.org
  2024-02-29 19:43 ` alexanderw at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-02-29  2:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexander Westbrooks alexanderw
<alexanderw@gcc.gnu.org>:

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

commit r14-9229-gedfe198084338691d0facc86bf8dfa6ede3ca676
Author: Alexander Westbrooks <alexanderw@gcc.gnu.org>
Date:   Wed Feb 28 20:03:46 2024 -0600

    Fortran - Error compiling PDT Type-bound Procedures [PR82943/86148/86268]

    This patch allows parameterized derived types to compile successfully
    when typebound procedures are specified in the type specification.
    Furthermore, it allows function calls for PDTs by setting the
    f2k_derived space of PDT instances to reference their original template,
    thereby giving it referential access to the typebound procedures of the
    template. Lastly, it adds a check for deferred length parameters of
    PDTs in CLASS declaration statements, and correctly throws an error if
    such declarations are missing POINTER or ALLOCATABLE attributes.

    2024-02-25  Alexander Westbrooks  <alexanderw@gcc.gnu.org>

    gcc/fortran/ChangeLog:
            PR fortran/82943
            PR fortran/86148
            PR fortran/86268
            * decl.cc (gfc_get_pdt_instance): Set the PDT instance field
            'f2k_derived', if not set already, to point to the given
            PDT template 'f2k_derived' namespace in order to give the
            PDT instance referential access to the typebound procedures
            of the template.
            * gfortran.h (gfc_pdt_is_instance_of): Add prototype.
            * resolve.cc (resolve_typebound_procedure): If the derived type
            does not have the attribute 'pdt_template' set, compare the
            dummy argument to the 'resolve_bindings_derived' type like usual.
            If the derived type is a 'pdt_template', then check if the
            dummy argument is an instance of the PDT template. If the derived
            type is a PDT template, and the dummy argument is an instance of
            that template, but the dummy argument 'param_list' is not
            SPEC_ASSUMED, check if there are any LEN parameters in the
            dummy argument. If there are no LEN parameters, then this implies
            that there are only KIND parameters in the dummy argument.
            If there are LEN parameters, this would be an error, for all
            LEN parameters for the dummy argument MUST be assumed for
            typebound procedures of PDTs.
            (resolve_pdt): Add a check for ALLOCATABLE and POINTER attributes
for
            SPEC_DEFERRED parameters of PDT class symbols.  ALLOCATABLE and
            POINTER attributes for a PDT class symbol are stored in the
            'class_pointer' and 'allocatable' attributes of the '_data'
            component respectively.
            * symbol.cc (gfc_pdt_is_instance_of): New function.

    gcc/testsuite/ChangeLog:
            PR fortran/82943
            PR fortran/86148
            PR fortran/86268
            * gfortran.dg/pdt_4.f03: Update modified error message.
            * gfortran.dg/pdt_34.f03: New test.
            * gfortran.dg/pdt_35.f03: New test.
            * gfortran.dg/pdt_36.f03: New test.
            * gfortran.dg/pdt_37.f03: New test.

    Signed-off-by: Alexander Westbrooks <alexanderw@gcc.gnu.org>

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

* [Bug fortran/86148] parameterized type compile time error
       [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2024-02-29  2:15 ` cvs-commit at gcc dot gnu.org
@ 2024-02-29 19:43 ` alexanderw at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: alexanderw at gcc dot gnu.org @ 2024-02-29 19:43 UTC (permalink / raw)
  To: gcc-bugs

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

Alexander Westbrooks <alexanderw at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
           Assignee|pault at gcc dot gnu.org           |alexanderw at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #8 from Alexander Westbrooks <alexanderw at gcc dot gnu.org> ---
Patch has been pushed to the trunk. Marking as fixed.

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

end of thread, other threads:[~2024-02-29 19:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86148-4@http.gcc.gnu.org/bugzilla/>
2020-07-13 21:29 ` [Bug fortran/86148] parameterized type compile time error dominiq at lps dot ens.fr
2021-03-22 21:07 ` van.snyder at sbcglobal dot net
2021-03-22 21:53 ` van.snyder at sbcglobal dot net
2024-01-20 18:51 ` ctechnodev at gmail dot com
2024-02-29  2:15 ` cvs-commit at gcc dot gnu.org
2024-02-29 19:43 ` alexanderw 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).