./main.go:10:13: internal compiler error: bad mpint length: 65 > 64 (type untyped int, value 912345678901234567890123456789012345678901234567890912345678901234567890123456789012345678901234567890912345678901234567890123456789012345678901234567890912)
Please file a bug report including a short program that triggers the error.
This could be a false alarm, I'm just following what the toolchain asked me to do.
The text was updated successfully, but these errors were encountered:
Optimistically assigning to @griesemer but giving it a low priority since this case doesn't seem like it would come up much in practice. Seems like it could just use a better error message. @griesemer Please feel free to unassign!
The crash is actually happening in iexport, but the issue is that the integer constant requires more than 64 bytes (512 bits) to represent.
I think the issue is that types2 rejects arithmetic that overflows 512 bits, but evidently it doesn't check that constant literals themselves fit into 512 bits. If I change the declaration of BIG to include + 0, then types2 reports "constant addition overflow" even though it represents the same value.