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

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |pault at gcc dot gnu.org
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |pault at gcc dot gnu.org
   Last reconfirmed|                            |2025-09-15
             Blocks|                            |82173

--- Comment #1 from Paul Thomas <pault at gcc dot gnu.org> ---
Confirmed. Not only is gfortran failing to recognise the absence of the
optional type-param-spec-list but it attempts a type conversion in

    operands = operands_t(kind(1d0))(actual, expected)

giving parse tree output:

    ASSIGN MAIN__:operands Pdtoperands_t_8(8 ,
__convert_r4_r8[[((operands:actual))]] ,
__convert_r4_r8[[((operands:expected))]])

    operands = operands_t(kind(1e0))(actual, expected) works as expected.

Thanks for the report. I'm onto it.

Paul


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82173
[Bug 82173] [meta-bug] [PDT] Parameterized derived type errors

Reply via email to