You should add “+X” (one after another) instead of “…” until the
compiler returns a message like “EXPRESSION OVERFLOW”. For example,
antique compiler DR PL/I-86 allows to write program which would print
3.200000E+01 because the depth of the stack for expressions is very
small. The compiler which I use has a stack storing 1024 internal
operations. Therefore it allows a program which would print 3.400000E
+02. (Every addition operation includes 3 internal operations for one
addition. Thus 340 addition operations require 1020 internal
operations and 2 internal operations for one assignment. The sum total
is 1022.)
It would be interesting to check other compilers.
A lot would depend on the extent of optimisation.
It's possible that the expression is optimised to
X = 1022;