------- Comment #2 from dominiq at lps dot ens dot fr  2009-01-13 11:30 -------
> The question is whether one needs to reject it completely or only with 
> -std=f95.

I vote for "only with -std=f95" with may be a warning otherwise. I think it is
a legitimate optimization to replace A**B by A**I (with I=B) when B is known to
be an integer, hence to accept negative values for A in this case. I find
upsetting to have to cheat with variables when constant folding does not give
the same result as a similar code with variables.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38823

Reply via email to