https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83218
Bug ID: 83218
Summary: gforttran command fails to compile if fortran file is
present inside folder "%+@"
Product: gcc
Version: 6.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: sanket.karnik.s at gmail dot com
Target Milestone: ---
I was trying to compile a Fortran file which was present inside a directory
called "%+@". This works fine with gfortran 4.9, however, when I tried to do
the same using gfortran 6.3 I get an error. I tried to compile a simple "Hello
world" program but even that code failed to compile.
Output for version:
gfortran --version
GNU Fortran (MW GCC 6.3.0-GLIBC2.11) 6.3.0
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Reproduction steps from any directory:
1. % mkdir %+@
2. %gedit %+@/hello_world.f90
3. copy following code and save the file:
program hello
print *, "Hello World!"
end program hello
4. gfortran %+@/hello_world.f90
This should produce an error.