On Thu, Sep 05, 2019 at 07:03:25AM -0700, Steve Kargl wrote:
> On Thu, Sep 05, 2019 at 02:16:08PM +0300, Janne Blomqvist wrote:
> > On Thu, Sep 5, 2019 at 2:08 PM Nathan Sidwell <nat...@acm.org> wrote:
> > >
> > > Is it time to deprecate traditional preprocessing?  It's been  30 years
> > > since C89.  Are (non-compiler) tools that use it still things?
> > >
> > > Handling it gets its hooks into a bunch of odd places in libcpp.
> > >
> > > To be specific: deprecate -traditional-cpp for GCC10, remove in GCC11.
> > 
> > The Fortran frontend uses traditional mode, for reasons I can't recall
> > at the moment.
> > 
> 
> Modern C allows single line comments to start with //
> 
> program hello
>    print *, "Hello " // "world!"
> end program

With trunk,

% ~/work/bin/cpp hello.F90
# 1 "hello.F90"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "hello.F90"
program hello
   print *, "Hello "
end program

-- 
Steve

Reply via email to