https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80172
--- Comment #3 from gcc-bugs at marehr dot dialup.fu-berlin.de ---
Thank you for your feedback!
With std::array it works without a problem :)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80172
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80172
--- Comment #1 from Jonathan Wakely ---
I don't think this is valid code, that's not how std::initializer_list works.
It's not a magic array that owns its contents, it's just a pointer to some
external array and a length. In your functions the