void f(...);

struct X {
    X();
};

void g() {
    X x;
    f(x);
}

nonpod.cpp: In function ‘void g()’:
nonpod.cpp:9: warning: cannot pass objects of non-POD type ‘struct X’ through
‘...’; call will abort at runtime

Someone I know is currently trying to fix this warning in a very large
application with a complex build system.  Clearly something weird is going on. 
A pointer to the file and line of the function declaration would help eliminate
some possibilities at least, and possibly pinpoint the problem.


-- 
           Summary: warning about passing non-POD objects through ‘...’
                    should include name and location of declaration being
                    called
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jason dot orendorff at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40202

Reply via email to