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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |c

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
If I compile the C file with r237590 and link the object file to the fortran
file compiled with any revision (I have tried), the test works. This looks as a
C bug rather than a fortran one.

Note that compiling the C file with -Wall gives

pr86667.c: In function 'my_initenv':
pr86667.c:39:7: warning: value computed is not used [-Wunused-value]
       *ep++;
       ^~~~~
pr86667.c: In function 'my_readenv':
pr86667.c:54:14: warning: operation on 'ep' may be undefined [-Wsequence-point]
       *ep=*ep++;
            ~~^~

Also I get the warning (on darwin)

ld: warning: tentative definition of '_longest_env_variable' with size 8 from
'/var/folders/8q/sh_swgz96r7f5vnn08f7fxr00000gn/T//ccDHXTrU.o' is being
replaced by real definition of smaller size 4 from 'pr86667.o'

Reply via email to