From: "Nirmal Prasad" <nprasad@truept.com>
To: <cygwin@sourceware.cygnus.com>
Cc: <ifarquha@ihug.co.nz>
Subject: Re: This C++ code fails
Date: Mon, 15 Mar 1999 08:18:00 -0000 [thread overview]
Message-ID: <000701be6eff$91782ac0$c5b01e26@np_home_pc> (raw)
>The Test2 class is using virtual base classes, unlike the Test1 class. This
>difference causes an exception to be thrown when the pointer to member
isused.
hi there,
well i havent taken a serious look at it .. but here's what i did and the
results are interesting ......
Change the declaration for Test2 as follows:-
class Test2: virtual public Base2
i.e. drop Virtual public Base 1 and let the remainder of the program be the
same... The CPU usage JUMPS TO 100% and the program keeps leaking memory.. i
checked the disassembly in gdb and there is a jmp that keeps happening at
that point ... Anyway probably i'll take a serious look at it later....
Something going wrong i guess somewhere in codegen.
Regards
Nirmal Prasad R.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
WARNING: multiple messages have this Message-ID
From: "Nirmal Prasad" <nprasad@truept.com>
To: <cygwin@sourceware.cygnus.com>
Cc: <ifarquha@ihug.co.nz>
Subject: Re: This C++ code fails
Date: Wed, 31 Mar 1999 19:45:00 -0000 [thread overview]
Message-ID: <000701be6eff$91782ac0$c5b01e26@np_home_pc> (raw)
Message-ID: <19990331194500.H2RouxOq1hRMh-fIWsK1lz47_UlkSAQMICa336KIkkA@z> (raw)
>The Test2 class is using virtual base classes, unlike the Test1 class. This
>difference causes an exception to be thrown when the pointer to member
isused.
hi there,
well i havent taken a serious look at it .. but here's what i did and the
results are interesting ......
Change the declaration for Test2 as follows:-
class Test2: virtual public Base2
i.e. drop Virtual public Base 1 and let the remainder of the program be the
same... The CPU usage JUMPS TO 100% and the program keeps leaking memory.. i
checked the disassembly in gdb and there is a jmp that keeps happening at
that point ... Anyway probably i'll take a serious look at it later....
Something going wrong i guess somewhere in codegen.
Regards
Nirmal Prasad R.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
next reply other threads:[~1999-03-15 8:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-15 8:18 Nirmal Prasad [this message]
1999-03-31 19:45 ` Nirmal Prasad
-- strict thread matches above, loose matches on Subject: below --
1999-03-15 3:05 Ian Farquharson
1999-03-31 19:45 ` Ian Farquharson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000701be6eff$91782ac0$c5b01e26@np_home_pc' \
--to=nprasad@truept.com \
--cc=cygwin@sourceware.cygnus.com \
--cc=ifarquha@ihug.co.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).