Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: Re: f77/cpp bug?
Date: 1995/08/11	[thread overview]
Message-ID: <40einm$ds0@news.iastate.edu> (raw)
In-Reply-To: danpop.808014191@rscernix

Dan Pop <Dan.Pop@mail.cern.ch> wrote:
}hays@math.arizona.edu (Mark Hays) writes:
}>I think I may have found a bug in the DEC f77 compiler.

}>Since there doesn't seem to be a way to turn off the
}>removal of C++ comments, may I assume that one should
}>never concatenate strings (with //) in DEC f77 .F
}>files?

}Have you actually tried to compile a .F file which contains // with f77
}and had problems?  I have only f90 installed and I never had this problem
}because the compiler does the right thing: it invokes cpp with whatever
}magic options are required to disable the C++ comments:
}
}    ues5:~/tmp 499> cat foo.F
}	   print *, "foo" // "bar"
}	   end
}    ues5:~/tmp 500> f90 foo.F
}    ues5:~/tmp 501> ./a.out
}     foobar

   Oddly enough, the flags which trigger this seem to be either
   -D__LANGUAGE_FORTRAN or -DLANGUAGE_FORTRAN

John
-- 
John Hascall                ``An ill-chosen word is the fool's messenger.''
Moderator, comp.unix.wizards
Systems Software Engineer, ISU Comp Center + Ames, IA  50011 + 515/294-9551
<a href="http://www.cc.iastate.edu/staff/systems/john/">My Homepage</a>



      parent reply	other threads:[~1995-08-11  4:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-09  4:00 f77/cpp bug? Mark Hays
1995-08-10  4:00 ` Dan Pop
1995-08-10  4:00   ` Mark Hays
1995-08-11  4:00   ` Craig Neth USG
1995-08-11  4:00   ` John Hascall [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox