This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
/* Results:
GCC:
test2.cxx: In function 'int main()':
test2.cxx:xx: warning: cannot pass objects of non-POD type 'Class Point'
through '...'; call will abort at runtime
*/
void test(...) { }
class Point { public: Point(int x, int y) { this->x = x; this->y = y; } int getX() { return x; } int getY() { return y; }
private: int x; int y; };
int main() { Point p(1,1);
test(p);
return 0; }
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |