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

            Bug ID: 124044
           Summary: [amdgcn] converting from flat to default address space
                    ICEs
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: arsen at gcc dot gnu.org
  Target Milestone: ---

the following program:

  void *
  foo (void __flat* ptr)
  { return ptr; }

... crashes the AMD GCN compiler.

this is because gcn_addr_space_convert does not know how to convert from the
flat to the default address space, or vice-versa.

by default (always?) these are the same, so that's a minor oversight

Reply via email to