You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was exploring the boundaries of the compile-time reflection capabilities of Zig (which are very cool!!) when I found that calling @typeInfo on a struct inside that same struct causes the compiler to segfault. Doing this probably isn't useful; I can't think of what the result should be (is this is even theoretically possible?). So this should probably result in a compile-time error?
@emekoi Thanks for the pointer, that looks like an interesting issue! I will try to digest it as best I can, and hopefully learn more about how Zig works internally along the way 😄
I was exploring the boundaries of the compile-time reflection capabilities of Zig (which are very cool!!) when I found that calling
@typeInfo
on a struct inside that same struct causes the compiler to segfault. Doing this probably isn't useful; I can't think of what the result should be (is this is even theoretically possible?). So this should probably result in a compile-time error?Example code:
Backtrace in gdb:
This is using a release build of Zig from the master branch.
The text was updated successfully, but these errors were encountered: