[Bug fortran/71686] New: ICE on broken character continuation

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Jun 28 18:33:00 GMT 2016


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

            Bug ID: 71686
           Summary: ICE on broken character continuation
           Product: gcc
           Version: 6.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fortran@t-online.de
  Target Milestone: ---

With a broken character continuation :

$ cat z1.f90
program p
   character(8) :: z
   z = 'abc&
!end

$ cat z2.f90
program p
   character(8) :: z = 'abc&
!end


$ gfortran-6 z1.f90
f951: internal compiler error: Segmentation fault

$ gfortran-6 z2.f90
f951: internal compiler error: Segmentation fault

---

Whereas :

$ cat z3.f90
program p
   character(8) :: z = 'abc&


$ gfortran-6 z3.f90
z3.f90:2:24:

    character(8) :: z = 'abc&
                        1
Error: Unterminated character constant beginning at (1)


More information about the Gcc-bugs mailing list