Hi,
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;
compiles with out errors in g++. The result is as if f is declared with
F f;
This is the case with the stock/latest GCC in Debian GNU/Linux x86_64
(v.4.1.2) and in Cygwin (v.3.4.4).
Is this the intended behavior?
--
Weiqi Gao
[EMAIL PROTECTED]
http://www.weiqigao.com/blog/