------- 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 primes::i and primes::p are not initialised by the primes(long)
constructor.


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
            Version|unknown                     |4.3.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42472

Reply via email to