https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65771
--- Comment #4 from ktkachov at gcc dot gnu.org --- > The switch statement in loc_list_from_tree > doesn't handle DEBUG_EXPR_DECL which is why it ICEs. > However, I'm not familiar with the code. > Should it handle DEBUG_EXPR_DECL (just return 0)? Adding a return 0 for the DEBUG_EXPR_DECL fixes the ICE in the testcase, but I have no idea if it's the correct thing to do.