https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118412
--- Comment #3 from André Brand <andre.brand at mailbox dot org> --- That's interesting. This example is copied word for word from the standard section [temp.mem.enum](https://eel.is/c++draft/temp.mem.enum): https://godbolt.org/z/no6z7WT5s ... but all major compilers seem to reject it.