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/36162] New: Non-ASCII character in module string gives ICE


We need to escape non-printable characters when we read/write module files.
Otherwise, big bad ICE:

module m
 character(*), parameter ::  a ='H\0z'
end module m

use m
print *, a  ! ICE
print *, ichar(a(1:1)), ichar(a(2:2)), ichar(a(3:3))  ! ICE
end


-- 
           Summary: Non-ASCII character in module string gives ICE
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: fxcoudert at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36162


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