https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128730

            Bug ID: 128730
           Summary: infinite loop upon defining a double precision maximum
                    number
           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: ---

This example program provides a decimal approximation to 2**1024 (computed with
Mathematica, and outputting a 70 digit floating point representation).

A long real is then initialized using this value, and attempted to print out.
However, we enter an infinite loop before printing the value.

Short example code exhibiting failure:

begin

string maxnum_def := "2**1024";
long real l_maxnum = Leng
1.7976931348623159077293051907890247336179769789423065727343008115773267580e308;

puts("Want to print our maxnum value, but we are stuck in infinite loop. 'n");
puts("l_maxnum: " + float(l_maxnum, 78, 70, 4) + "'n");
skip

end
  • [Bug algol68/128730] New: infini... jpl.algol68 at gmail dot com via Gcc-bugs

Reply via email to