This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/68968] Internal Compiler error


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

--- Comment #2 from kargl at gcc dot gnu.org ---
(In reply to kargl from comment #1)
> (In reply to Fred Krogh from comment #0)
> > Created attachment 37073 [details]
> > Compile this as indicated in the comments and get a segmentation fault in
> > the compiler
> > 
> > test.F90 attached gives an internal compiler error (Segmentation fault) when
> > compiled with
> > 
> > gfortran -Dplet_=\'q\' -o test test.F90
> > 
> > If gfortran is replaced by cpp in the above, it seems to generate what one
> > would expect.
> 
> A workaround is to remove the apostrophes around 's', 'd', and 'q'.

Forgot to add

% gfc6 -E -Dplet_=s ~/tmp/wq.F90 | cat -s
# 1 "/mnt/sgk/tmp/wq.F90"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/mnt/sgk/tmp/wq.F90"
program test

  print '(A)', "C_FLOAT"
  stop
end program test

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]