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 c/12589] New: internal error while warning about incorrect printf arguments when LANG=es_AR


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: internal error while warning about incorrect printf
                    arguments when LANG=es_AR
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: niqueco at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org

gcc gives an internal error while warning about incorrect printf arguments, but
only in the "es_AR" locale.

The English version of the error given is: "Internal compiler error: Error
reporting routines re-entered."

How to reproduce the bug:

$ cat > a.c
int main()
{
        printf("% s", "s");
}
$ LANG=C cc -Wall    a.c   -o a
a.c: In function `main':
a.c:3: warning: implicit declaration of function `printf'
a.c:3: warning: ` ' flag used with `%s' printf format
a.c:4: warning: control reaches end of non-void function
$ LANG=es cc -Wall    a.c   -o a
< ok too >
$ LANG=es_AR cc -Wall    a.c   -o a
a.c: En la función `main':
a.c:3: aviso: implicit declaration of function `printf'
a.c:3: aviso: se usó
Error interno del compilador: Error al reportar rutinas reentradas.
Por favor envíe un reporte completo de `bugs',
con el código preprocesado si es apropiado.
Vea <URL:http://gcc.gnu.org/bugs.html> para más instrucciones.
$ gcc -v
Leyendo especificaciones de /usr/lib/gcc-lib/i486-linux/3.3.2/specs
Configurado con: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Modelo de hilos: posix
gcc versión 3.3.2 20030908 (Debian prerelease)


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