[Bug c++/42472] class members not getting assigned access thru another method

2010-02-03 Thread k_suresh_babu at yahoo dot com
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

[Bug c++/42472] class members not getting assigned access thru another method

2009-12-25 Thread paolo dot carlini at oracle dot com
--- 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

[Bug c++/42472] class members not getting assigned access thru another method

2009-12-24 Thread k_suresh_babu at yahoo dot com
. --- 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

[Bug c++/42472] class members not getting assigned access thru another method

2009-12-23 Thread redi at gcc dot gnu dot org
--- 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