This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13258] New: strings used for the extern keyword are being translated by the -fexec-charset option
- From: "darcypj at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2003 14:39:10 -0000
- Subject: [Bug c++/13258] New: strings used for the extern keyword are being translated by the -fexec-charset option
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Below are compiler setup and compile error messages, it appears that the "C"
and/or the "C++" in extern statements are being translated with the new
-fexec-charset compiler option, and the compiler is expecting 'good old ASCII'
characters when it lexes those statements.
Configured with: /opt/compiler_source/34base/configure --target=s390x-ibm-tpf
--prefix=/opt/tpf-cross-tools --program-prefix=s390x-ibm-tpf-
--enable-languages=c,c++ --with-dwarf2 --disable-threads
--with-binutils=/opt/tpf-cross-tools/bin
--with-libs=/opt/tpf-cross-tools/s390x-ibm-tpf/lib
Thread model: single
gcc version 3.4 20031121 (experimental)
Compile command and error message:
[~/bug]s390x-ibm-tpf-g++ -fexec-charset=IBM1047 -c bugrept.cc -Wall -save-temps
bugrept.cc:1: error: language string `"ÃNN"' not recognized
Note:
"Ã" is the ISO-8859-1 representation of character point /xC3, which is the
letter "C" in IBM1047, and
"ÃNN" is the ISO-8859-1 representation of character points /xC3/x4E/x4E, which
is the string "C++" in IBM1047)
Below is the original .cc file source. (No includes and about 5 lines so I
considered the .ii file not worth shipping.)
==============begin bugrept.cc source========
extern "C++" { //alternately use extern "C" {
int testbug (void) {
return 0;
}
} //extern block
==============end bugrept.cc source========
--
Summary: strings used for the extern keyword are being translated
by the -fexec-charset option
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: darcypj at us dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org,zack at codesourcery dot
com
GCC build triplet: s390x-ibm-linux
GCC host triplet: s390x-ibm-linux
GCC target triplet: s390x-ibm-tpf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13258