https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123104 --- Comment #2 from mauro russo <ing.russomauro at gmail dot com> --- as additional comment: removing the requires clause simplifies the syntax of the example and still leads to the problem.