Your message dated Fri, 5 Apr 2013 23:49:23 +0100 with message-id <capq4b8nwrfthcy9c338lvgdyhuamvv2rga1uo9mmapbnabf...@mail.gmail.com> and subject line Fixed in gcc 4.8.0 has caused the Debian Bug report #237207, regarding [PR 14710] Warning about useless casts to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 237207: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=237207 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: g++-3.3 Version: 1:3.3.3-1 Severity: wishlist It would be nice if there was an option to add a warning about "useless" casts. Although they are not really incorrect, they might become incorrect/inefficient as the program evolves. Ie; struct A { int a; }; struct B : A { int b; }; void func(A *a) { ++a; } int main(int ac, char **av) { A a; B b; func((A*)&a); // Useless cast since a already is an A. func(static_cast<A*>(&a)); // Just as useless. func((A*)&b); // Useless cast since b is a kind of A. func(static_cast<A*>(&b)); // Just as useless. return 0; } -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.4.21-xfs Locale: LANG=sv_SE, LC_CTYPE=sv_SE Versions of packages g++-3.3 depends on: ii gcc-3.3 1:3.3.3-1 The GNU C compiler ii gcc-3.3-base 1:3.3.3-1 The GNU Compiler Collection (base ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an ii libstdc++5-3.3-dev 1:3.3.3-1 The GNU Standard C++ Library v3 (d -- no debconf information
--- End Message ---
--- Begin Message ---fixed 237207 1.120exp2 stop This bug was fixed in 4.8.0, which was released in experimental and probably soon in unstable. gcc 1.120exp2 depends on that version on the major architectures. Cheers.
--- End Message ---

