[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|NEW |RESOLVED --- Comment #7 from Andrew Pinski --- Dup of bug 55210. *** This bug has been marked as a duplicate of bug 55210 ***
[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2015-02-13 Ever confirmed|0 |1 --- Comment #6 from Dominique d'Humieres dominiq at lps dot ens.fr --- Reduced test #if plet=='s' #define ckind #endif end [Book15] f90/bug% gfc -cpp pr65025_db_1.f90 built-in: internal compiler error: Segmentation fault: 11 I see it with gfortran 4.4.7.
[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 --- Comment #2 from Fred Krogh fkrogh#gcc at mathalacarte dot com --- Created attachment 34734 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34734action=edit The small test program that shows the error. Maybe this time the code will get there?
[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 --- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr --- *** Bug 65026 has been marked as a duplicate of this bug. ***
[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 --- Comment #3 from Dominique d'Humieres dominiq at lps dot ens.fr --- Maybe this time the code will get there? The code was there in this PR, but not in 65026. #if plet_=='s' #define ckind__ C_FLOAT #elif plet_=='q' #define ckind__ C_LONG_DOUBLE #elif plet_=='d' #define ckind__ C_DOUBLE #endif end is enough to reproduce the ICE.
[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 --- Comment #4 from Fred Krogh fkrogh#gcc at mathalacarte dot com --- In collapsing a big code to the small example, I left out a line that should be there. Add below the first line use ISO_C_BINDING, only: C_DOUBLE, C_FLOAT, C_LONG_DOUBLE This has no effect however on the internal compiler error.
[Bug fortran/65025] Internal compiler error with preprocessor in gfortran
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65025 --- Comment #5 from Fred Krogh fkrogh#gcc at mathalacarte dot com --- I realize (now) that this is not a valid Fortran code. I was trying to hard to make it work like it works in C. Removing the apostrophes around the s, d, and q, in both the code and on the command line, and all works, although I'm not sure about it being portable.