Code: https://zigbin.io/d777fa
I'm writing a pseudo-attributes lookup helper (think Java/Go annotations or C# attributes) as has been recommended when folks ask for an explicit attribute feature. It works well when I reify the attributes into runtime-available data, but when I try to examine attributes at comptime and compile I get exit code 3 on windows (and SIGTRAP on Linux according to zigbin/godbolt).
I've tried looping through attributes by index, iterating struct fields from the type info, and putting the loop in another function that just returns the tuple index.
I thought maybe I was hitting this bug because initially I had nested tuples: https://github.com/ziglang/zig/issues/18972
But when I pulled it out into just a single top-level tuple literal, I still hit this crash, so I'm not sure it's related. Anyone recall similar open issues and found a workaround? Wanted to check before submitting a bug.
Also, this is happening at least between 0.12.0-dev.2063 and master (tested latest nightly just now).