------- Comment #2 from fxcoudert at gcc dot gnu dot org 2006-06-03 11:41 ------- Created an attachment (id=11588) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11588&action=view) Code generated for testcase
See the code generated for this testcase (with my recent patch for improved out-of-bounds messages). In order to create a temporary, we first run the i=1:1 loop once, without the conditionnal mask (which in this case is .false.), to count the total length needed for the temporary (variable num.5). When doing this, we perform bounds checking on elements that will not be used in the final loop. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27874