Incomplete Type Bug in g++ 4.3.0

Anthony Newnam anthony@bnovc.com
Thu Feb 12 22:30:00 GMT 2009


There is a bug in g++ version 4.3.0 which causes incomplete types to
be sent to functions by value. In testing today, I found that this was
fixed in version 4.3.1. Could anyone direct me to where this was fixed
at? I've been reading through the svn log and diff, but I haven't
located it, yet.

Here is an example of what should error when compiling, but does not
using `g++ -c file.cpp` in version 4.3.0.
struct A;
void foo(A);
void bar(A* p){foo(*p);}

Thank you,
Anthony



More information about the Gcc-help mailing list