https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115820
--- Comment #1 from Halalaluyafail3 <luigighiron at gmail dot com> --- The Clang error only occurs with -pedantic-errors to make it clear, GCC does not diagnose the error even with -pedantic-errors.