reject reading rationals with exponent notation
The program
main = print (1E1000000000 :: Rational)
fails in the same way as for doubles currently. This should not happen at compile time! Therefore I suggest to forbid using the e-notation for rationals, it is not legal for integers either.
(An alternative would be to evaluate the rational only at run-time)
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | #5692 (closed) |
Blocking | |
CC | |
Operating system | |
Architecture |