[Bug c++/40202] warning about passing non-POD objects through �?=...=?UTF-8?Q?� should include name and location of declaration being called
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 29 16:25:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40202
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-29 16:03:15 UTC ---
Manuel, do you have an opinion about this rather old issue? In the meanwhile,
the warning became an hard error, when it applies. Thus the original testcase
is just accepted, and this variant:
void f(...);
struct X {
X();
X(const X&);
};
void g() {
X x;
f(x);
}
gives:
40202.C: In function ‘void g()’:
40202.C:10:8: error: cannot pass objects of non-trivially-copyable type ‘struct
X’ through ‘...’
ICC warns exactly at the same line, 10, and nothing else.
More information about the Gcc-bugs
mailing list