com
gcc-bugzi...@gcc.gnu.org wrote:
From: paolo dot carlini at oracle dot com gcc-bugzi...@gcc.gnu.org
Subject: [Bug c++/42472] class members not getting assigned access thru
another method
To: k_suresh_b...@yahoo.com
Date: Friday, December 25, 2009, 3:50 AM
--- Comment #3 from paolo
--- Comment #3 from paolo dot carlini at oracle dot com 2009-12-25 09:50
---
Yes, in C++03 (C++0x will be different), a constructor cannot call *another
constructor*.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42472
.
--- On Wed, 12/23/09, redi at gcc dot gnu dot org gcc-bugzi...@gcc.gnu.org
wrote:
From: redi at gcc dot gnu dot org gcc-bugzi...@gcc.gnu.org
Subject: [Bug c++/42472] class members not getting assigned access thru
another method
To: k_suresh_b...@yahoo.com
Date: Wednesday, December 23, 2009, 5:09 AM
--- Comment #1 from redi at gcc dot gnu dot org 2009-12-23 11:09 ---
C++ is not java, you cannot delegate to another constructor like this:
primes::primes(ulong p):maxp(p) { primes(); }
That creates a temporary object of type primes, it does not call the
constructor.
Therefore