David Fang wrote:
We come across what seems to be a bug in gcc. If a class F has a public zero argument constructor, then we can declare a variable of type F::F, F::F::F, etc. For example, the following source file:// foo.cpp class F {}; F::F::F::F::F f;See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11764 Still accepts-invalid with g++-4.3.2.
Thanks for the pointer. -- Weiqi Gao [EMAIL PROTECTED] http://www.weiqigao.com/blog/