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 translation/21475] [4.0/4.1 regression] ICE with german locale in "is used uninitialized" warning


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-08 13:18 -------
Confirmed.

The problem can be demonstrated with the following code snippet:

===================
int foo()
{
    int i;
    return i;
}
===================

Compiling the above with "-O -Wall" and LC_ALL=C yields the warning

  bug.c: In function 'foo':
  bug.c:4: warning: 'i' is used uninitialized in this function

With LC_ALL=de_DE I get an ICE.
The following lines in the de.po file look suspicious:

  #: tree-ssa.c:1379
  msgid "%H%qD is used uninitialized in this function"
  msgstr "%J%qD wird in dieser Funktion uninitialisiert verwendet"

Looks like we want "%H%qD" instead of "%J%qD" in the translation.
This affects the 4.0 branch and mainline.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic, ice-on-valid-
                   |                            |code
   Last reconfirmed|0000-00-00 00:00:00         |2005-06-08 13:18:42
               date|                            |
            Summary|gcc fails with german       |[4.0/4.1 regression] ICE
                   |locale, builts fine with    |with german locale in "is
                   |LC_ALL="C"                  |used uninitialized" warning
   Target Milestone|---                         |4.0.1


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


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