Migration from solaris(CC) to GCC of RHEL

vinaykumar ps psvinay.kumar at gmail.com
Tue Sep 4 12:09:55 UTC 2012


Hi,

For example in GCC,
char* ptr = (myClass.getObject()).getAddress();
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.

I wanted to find such runtime errors. Or in other words Compiler dependent
code.

- Vinay

On Tue, Sep 4, 2012 at 5:32 PM, rajatjpatel <rajatjpatel at gmail.com> wrote:

> VinayKumar,
>
> not understood u r question
> Regards,
> Rajat Patel
>
> http://studyhat.blogspot.com
> FIRST THEY IGNORE YOU...
> THEN THEY LAUGH AT YOU...
> THEN THEY FIGHT YOU...
> THEN YOU WIN...
>
>
>
>
> On Tue, Sep 4, 2012 at 4:55 PM, vinaykumar ps <psvinay.kumar at gmail.com>wrote:
>
>> Hello,
>>
>> Is there a way to find out the runtime changes that will occur in
>> GCC/RHEL compared to CC/Solaris
>>
>> - Vinay
>>
>> _______________________________________________
>> Redhat-migration-list mailing list
>> Redhat-migration-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/redhat-migration-list
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-migration-list/attachments/20120904/dce71748/attachment.htm>


More information about the Redhat-migration-list mailing list