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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |9.4
     Ever confirmed|0                           |1
      Known to fail|                            |11.0
            Summary|Inlining with non-standard  |[9/10/11 Regression]
                   |selected_int_kind leads to  |Inlining with non-standard
                   |errors                      |selected_int_kind leads to
                   |                            |errors
           Keywords|                            |wrong-code
   Last reconfirmed|                            |2020-09-10
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |8.4.1
           Priority|P3                          |P4

--- Comment #2 from anlauf at gcc dot gnu.org ---
It appears to be a combination of inlining and optimizations that are present
at -O2 but not at -O1.

OK:

gfc-11 pr97009.f90 -O1 -finline
gfc-11 pr97009.f90 -O2 -fno-inline

Not OK:

gfc-11 pr97009.f90 -O2 -finline

The output in the latter case appears to be random junk.
But valgrind does not show anything for me, nor does ASAN.

Could also be some ME issue.

Reply via email to