This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30452] New: Strange syntax error with high-value character
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2007 22:50:10 -0000
- Subject: [Bug fortran/30452] New: Strange syntax error with high-value character
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This shouldn't be rejected. g77 accepts this.
$ cat char.f
program main
if (char (254) /= "þ") call abort
end program main
$ gfortran char.f
char.f:2.24:
if (char (254) /= "\xFE") call abort
1
Error: Unterminated character constant beginning at (1)
$ g77 char.f
$
--
Summary: Strange syntax error with high-value character
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tkoenig at gcc dot gnu dot org
OtherBugsDependingO 19292
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30452