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

            Bug ID: 109661
           Summary: [13/14 Regression] ICE in
                    aarch64_function_arg_alignment when building erlang
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

typedef unsigned long U __attribute__ ((aligned (sizeof (long))));
typedef enum : U { V = 0 } W;

U
foo (U a, W b)
{
  return a + U (b);
}

ICEs on aarch64-linux with:
rh2190219.C: In function ‘U foo(U, W)’:
rh2190219.C:5:14: internal compiler error: in aarch64_function_arg_alignment,
at config/aarch64/aarch64.cc:7500
    5 | foo (U a, W b)
      |              ^
0x1e05aef aarch64_function_arg_alignment
        ../../gcc/config/aarch64/aarch64.cc:7500
0x1e063dd aarch64_layout_arg
        ../../gcc/config/aarch64/aarch64.cc:7716
0x1e06fda aarch64_function_arg_advance
        ../../gcc/config/aarch64/aarch64.cc:7963
0x1dfbe52 aarch64_takes_arguments_in_sve_regs_p
        ../../gcc/config/aarch64/aarch64.cc:4023

Reply via email to