Don't ICE on packed structs in a static.

Fixes #9830.