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

            Bug ID: 87686
           Summary: [9 regression] internal error in expand, at
                    tree-switch-conversion.c:916
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ebotcazou at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-linux

Created attachment 44878
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44878&action=edit
Testcase

It's a doubly-reduced testcase (reduced for this PR after having being reduced
for another issue) so it might be borderline, but it should not ICE anyway:

t.cpp: In member function 'k k::l()':
t.cpp:16:18: warning: no return statement in function returning non-void
[-Wreturn-type]
   16 |   k l() { j.i(); }
      |                  ^
t.cpp: In member function 'a a::i()':
t.cpp:12:3: warning: control reaches end of non-void function [-Wreturn-type]
   12 |   }
      |   ^
during GIMPLE pass: switchconv
t.cpp: In member function 'k k::l()':
t.cpp:18:22: internal compiler error: in expand, at
tree-switch-conversion.c:916
   18 | void m(k h) { h.l(); }
      |                      ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to