[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#460264: marked as done (g++-4.2: Please make it possible to make the "cannot pass objects of non-POD type ..." warning into an error)



Your message dated Tue, 23 Jun 2015 07:24:48 +0000
with message-id <E1Z7IZc-0001tY-Ii@franck.debian.org>
and subject line Bug#789156: Removed package(s) from unstable
has caused the Debian Bug report #460264,
regarding g++-4.2: Please make it possible to make the "cannot pass objects of non-POD type ..." warning into an error
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 owner@bugs.debian.org
immediately.)


-- 
460264: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=460264
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: g++-4.2
Version: 4.2.2-5
Severity: wishlist


The warning generated at gcc/cp/call.c:4548 doesn't have a warning type 
associated with it, so there's no way to turn this warning into an
error.

This is a very serious warning, as indicated by the fact that it tells
you the call will abort at runtime.  If a user doesn't notice this
warning, debugging the problem is very difficult.

If one could add something like -Werror=pass-non-POD to the gcc options,
then this would save quite a few headaches here :)

Maybe something along the lines of...

--- gcc-20071008.orig/gcc/c.opt	2007-09-01 16:49:07.000000000 -0400
+++ gcc-20071008/gcc/c.opt	2008-01-11 10:09:57.000000000 -0500
@@ -330,6 +330,10 @@
 C ObjC C++ ObjC++ Var(warn_parentheses)
 Warn about possibly missing parentheses
 
+Wpass-non-pod
+C++ Var(warn_pass_non_pod)
+Warn about passing non-POD types through '...'
+
 Wpmf-conversions
 C++ ObjC++ Var(warn_pmf2ptr) Init(1)
 Warn when converting the type of pointers to member functions
diff -urN gcc-20071008.orig/gcc/cp/call.c gcc-20071008/gcc/cp/call.c
--- gcc-20071008.orig/gcc/cp/call.c	2007-09-13 08:57:52.000000000 -0400
+++ gcc-20071008/gcc/cp/call.c	2008-01-11 10:09:53.000000000 -0500
@@ -4545,7 +4545,7 @@
         there is no need to emit a warning, since the expression won't be
         evaluated. We keep the builtin_trap just as a safety check.  */
       if (!skip_evaluation)
-	warning (0, "cannot pass objects of non-POD type %q#T through %<...%>; "
+	warning (OPT_Wpass_non_pod, "cannot pass objects of non-POD type %q#T through %<...%>; "
                 "call will abort at runtime", TREE_TYPE (arg));
       arg = call_builtin_trap ();
       arg = build2 (COMPOUND_EXPR, integer_type_node, arg,


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages g++-4.2 depends on:
ii  gcc-4.2                       4.2.2-5    The GNU C compiler
ii  gcc-4.2-base                  4.2.2-5    The GNU Compiler Collection (base 
ii  libc6                         2.7-5      GNU C Library: Shared libraries
ii  libstdc++6-4.2-dev            4.2.2-5    The GNU Standard C++ Library v3 (d

g++-4.2 recommends no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 4.7.4-3+rm

Dear submitter,

as the package gcc-4.7 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/789156

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)

--- End Message ---

Reply to: