This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Incomplete Type Bug in g++ 4.3.0
- From: Anthony Newnam <anthony at bnovc dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 12 Feb 2009 16:30:33 -0600
- Subject: 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