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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2018-07-12
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Related to/ duplicate of PRs 48655 and 63689. -Warray-temporaries is emitted
when the front-end create a temporary, but this temporary may be optimized away
and in this case there is no reason to emit a warning with -fcheck=array-temps.
So the question is "Is the temporary for xx(:)%i optimized away or not?".

> Minor documentation issue: -Warray-temporaries is not listed on
> https://gcc.gnu.org/onlinedocs/gfortran/Option-Summary.html,
> therefore I had a hard time finding it.

Confirmed, but it is documented in

https://gcc.gnu.org/onlinedocs/gfortran/Error-and-Warning-Options.html#Error-and-Warning-Options

> Also: Couldn't it be included in -Wall or at least -Wextra?

Why? Its intent is only to help users to optimize their codes.

Reply via email to