This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/16025] New: ICE with unsupported locale
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2004 20:07:16 -0000
- Subject: [Bug other/16025] New: ICE with unsupported locale
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[ extracted from http://bugs.debian.org/242158 ]
when LC_ALL is set to a locale, which exists on the system, but isn't supported
by gcc, the following code ICEs:
extern int sprintf (char *__restrict __s,
__const char *__restrict __format, ...) throw ();
int foo(char *buf)
{
sprintf(buf, "%s/torcs-%04.4d-%08.8d.png", "foo", 27, 42);
}
$ LC_ALL=es_PE g++ -Wall -c foo.ii
foo.ii: En function `int foo(char*)':
foo.ii:6: aviso: se ignora
Error interno del compilador: Error al reportar rutinas reentradas.
Please submit a full bug report,
with preprocessed source if appropriate.
$ g++ -Wall -c foo.ii
foo.ii: In function `int foo(char*)':
foo.ii:6: warning: `0' flag ignored with precision and `%d' printf format
foo.ii:6: warning: `0' flag ignored with precision and `%d' printf format
foo.ii:7: warning: control reaches end of non-void function
same for current 3.4. HEAD succeeds (but does has the translation):
$ g++-HEAD -Wall -c foo.ii
foo.ii: In function `int foo(char*)':
foo.ii:6: aviso: opción `0' ignored with precisión and '%d' printf format
foo.ii:6: aviso: opción `0' ignored with precisión and '%d' printf format
--
Summary: ICE with unsupported locale
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16025