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

            Bug ID: 106555
           Summary: [12/13 Regression] d: internal compiler error: in
                    add_stack_var, at cfgexpand.cc:476
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

When compiled with: gdc -O2 empty.d ice.d 

empty.d:
---
---

ice.d:
---
struct EnemyPool
{
    int[] enemy;
    int maxEnemy;
    this(int) {
        enemy.length = maxEnemy;
    }
}
---

Results in ICE:
---
during GIMPLE pass: local-fnsummary
In function ‘_d_HookTraceImpl’:
d21: internal compiler error: in add_stack_var, at cfgexpand.cc:476
0x7fa9f3 add_stack_var
        ../../gcc/cfgexpand.cc:476
0xc9e9cb expand_one_var
        ../../gcc/cfgexpand.cc:1824
0xc9eae0 estimated_stack_frame_size(cgraph_node*)
        ../../gcc/cfgexpand.cc:2103
0xf1b37f compute_fn_summary(cgraph_node*, bool)
        ../../gcc/ipa-fnsummary.cc:3108
0xf1b630 compute_fn_summary_for_current
        ../../gcc/ipa-fnsummary.cc:3237
0xf1b630 execute
        ../../gcc/ipa-fnsummary.cc:4855
---

Reduced from debian bug
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1016701

Reply via email to