https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125199
Bug ID: 125199
Summary: Internal compiler error while attempting stateful
metaprogramming
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
Assignee: unassigned at gcc dot gnu.org
Reporter: itfllow123 at gmail dot com
Target Milestone: ---
The bug occured when I tried to do some sort of stateful metaprogramming
without the use of std::bit_cast.
here is the code at that point in time:https://godbolt.org/z/7rPrrYsbT
notice the error:
Basically I got an issue that had "internal compiler error written".
Sorry if my code is a little hard to follow through with ( I am new to cpp and
I'm 17 ),but here is the updated (and much cleaner (no casts) ) code to get a
better idea (but I fixed the issue here):
https://github.com/HjaldrKhilji/C-and-C-plus-plus-notes/blob/main/extended%20enum%20example
Thank you for reading till here.