This is the mail archive of the gcc-help@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]

Incomplete Type Bug in g++ 4.3.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]