2007-01-14 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/30452
* scanner.c(next_char): Cast next character to unsigned
to avoid confusion with error return codes.
2007-01-14 Thomas Koenig <Thomas.Koenig@online.de>
PR fortran/30452
* gfortran.dg/string_0xfe_0xff_1.f90: New test.
From-SVN: r120768
if (gfc_current_locus.nextc == NULL)
return '\n';
- c = *gfc_current_locus.nextc++;
+ c = (unsigned char) *gfc_current_locus.nextc++;
if (c == '\0')
{
gfc_current_locus.nextc--; /* Remain on this line. */
+2007-01-14 Thomas Koenig <Thomas.Koenig@online.de>
+
+ PR fortran/30452
+ * gfortran.dg/string_0xfe_0xff_1.f90: New test.
+
2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
* gcc.dg/20070112-1.c: New test.
--- /dev/null
+! { dg-do compile }
+! PR 30452 - this used to cause syntax errors due to the presence,
+! as characters, of bytes 0xfe and 0xff.
+program main
+ if (char (254) /= "þ") call abort
+ if (achar (255) /= "ÿ") call abort
+end program main