<div dir="ltr">Hi,<div><br></div><div>For example in GCC, </div><div>char* ptr = (myClass.getObject()).getAddress();</div><div>The ptr cannot be used as the object returned by getObject would have been destroyed and the ptr is invalid. This works find in CC as the copy constructor is invoked.</div>
<div><br></div><div>I wanted to find such runtime errors. Or in other words Compiler dependent code.</div><div><br></div><div>- Vinay<br><br><div class="gmail_quote">On Tue, Sep 4, 2012 at 5:32 PM, rajatjpatel <span dir="ltr"><<a href="mailto:rajatjpatel@gmail.com" target="_blank">rajatjpatel@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">VinayKumar,<div><br></div><div>not understood u r question <br clear="all">Regards,<br>Rajat Patel<br><br><a href="http://studyhat.blogspot.com/" target="_blank">http://studyhat.blogspot.com</a><br>
FIRST THEY IGNORE YOU...<br>
THEN THEY LAUGH AT YOU...<br>THEN THEY FIGHT YOU...<br>THEN YOU WIN...<br><br><br>
<br><br><div class="gmail_quote"><div><div class="h5">On Tue, Sep 4, 2012 at 4:55 PM, vinaykumar ps <span dir="ltr"><<a href="mailto:psvinay.kumar@gmail.com" target="_blank">psvinay.kumar@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">Hello,<div><br>Is there a way to find out the runtime changes that will occur in GCC/RHEL compared to CC/Solaris</div><div><br></div><div>- Vinay</div></div>
<br></div></div>_______________________________________________<br>
Redhat-migration-list mailing list<br>
<a href="mailto:Redhat-migration-list@redhat.com" target="_blank">Redhat-migration-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/redhat-migration-list" target="_blank">https://www.redhat.com/mailman/listinfo/redhat-migration-list</a><br></blockquote></div><br></div>
</blockquote></div><br></div></div>