This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68968] Internal Compiler error
- From: "kargl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Dec 2015 20:13:31 +0000
- Subject: [Bug fortran/68968] Internal Compiler error
- Auto-submitted: auto-generated
- References: <bug-68968-4 at http dot gcc dot gnu dot org/bugzilla/>
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