Package: g++-4.4
Version: 4.4.0-5
Severity: normal

The following program compiles cleanly using the given command line:

    #include <iostream>
    using namespace std;
    int main()
    {
        unsigned int j = 5;
        double t;
        t = -j;
        cout << t << endl;
    }

Command line:

    g++-4.4 -g -Wall -Wextra -Wconversion -Wsign-conversion test.cc -o test

The output of the program is

    4.29497e+09

which is what is expected.  But I would also expect some kind of
warning.

The same behaviour exists for gcc-4.3, g++-4.3 and gcc-4.4 (and
probably any other gcc version).

    Cheers,
        Sven

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=C, lc_ctype=de...@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages g++-4.4 depends on:
ii  gcc-4.4                 4.4.0-5          The GNU C compiler
ii  gcc-4.4-base            4.4.0-5          The GNU Compiler Collection (base 
ii  libc6                   2.9-12           GNU C Library: Shared libraries
ii  libcloog-ppl0           0.15-1           the Chunky Loop Generator (runtime
ii  libgmp3c2               2:4.2.4+dfsg-8.1 Multiprecision arithmetic library
ii  libgmpxx4ldbl           2:4.2.4+dfsg-8.1 Multiprecision arithmetic library 
ii  libmpfr1ldbl            2.4.1-2          multiple precision floating-point 
ii  libppl-c2               0.10.2-2         Parma Polyhedra Library (C interfa
ii  libppl7                 0.10.2-2         Parma Polyhedra Library (runtime l
ii  libstdc++6-4.4-dev      4.4.0-5          The GNU Standard C++ Library v3 (d

g++-4.4 recommends no packages.

Versions of packages g++-4.4 suggests:
pn  g++-4.4-multilib              <none>     (no description available)
pn  gcc-4.4-doc                   <none>     (no description available)
pn  libstdc++6-4.4-dbg            <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to