https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128731
Bug ID: 128731
Summary: allows initialization of invalid (too big) number,
gets stuck in infinite loop at runtime
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: algol68
Assignee: algol68 at gcc dot gnu.org
Reporter: jpl.algol68 at gmail dot com
Target Milestone: ---
Max long real value is about 1.8e308. Initializing a long real value to a
stupidly large number is allowed and gives no compilation error.
During runtime, trying to print our invalid value puts our program into an
infinite loop.
Sample program:
begin
long real toobig := Leng 1.0e400;
puts("Want to print our toobig value, but we are stuck in infinite loop. 'n");
puts("toobig: " + float(toobig, 20, 10, 4) + "'n");
skip
end