https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86907
--- Comment #2 from janus at gcc dot gnu.org --- I cannot reproduce this at r263854. I think the error you report requires GCC to be configured with --enable-checking (this is on by default for non-release builds, but off for releases).