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.

Reply via email to