Skip to content

Derived struct cannot be passed as inout parameter of base struct in function #8087

@keptsecret

Description

@keptsecret

Description
In trying out a workaround to this closed issue #8083, I found that passing the derived class to an inout parameter of the base class will fail to compile. See this code.

Steps to Reproduce
Tried to compile on godbolt with -E main -T cs_6_8 -HV 202x -spirv on DXC trunk.
It should be noted that without inout, it compiles fine. See code

Actual Behavior
I would expect it to compile fine just as it does without inout specifier.

Environment

  • DXC version trunk (1.8.2505)
  • Host Operating System Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions