C2Rust appears to support __float128 / Float128 at the type-mapping level (e.g., mapping LongDouble | Float128 to an f128 type), but __float128 floating-point literals (e.g., 1.0Q / 1.0q) cause a panic during transpilation (Unsupported floating point literal type Float128).
Reproducer
#include <float.h>
int main(void) {
__float128 f128_1 = 1.0q; // also happens with 1.0Q
return 0;
}
Observed
C2Rust panics during transpilation, e.g.:
thread 'main' panicked at 'Unsupported floating point literal type Float128', ...
Environment
- c2rust version: v0.21.0
- platform:Ubuntu 24.04
C2Rust appears to support
__float128/Float128at the type-mapping level (e.g., mappingLongDouble | Float128to anf128type), but__float128floating-point literals (e.g.,1.0Q/1.0q) cause a panic during transpilation (Unsupported floating point literal type Float128).Reproducer
Observed
C2Rust panics during transpilation, e.g.:
Environment