Re: Regarding GCC 4.9.2 backward compatibility with 3.2.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Thanks for your response.
The code snippet is like below
(void *)ShMem = shmat(ShId, 0, 0);

Error in this line: lvalue required as left operand of assignment.


>From GCC 3.4 lvalue casting is removed.
Is there any way to solve this error without changing the code? If we
can use compiler 4.9.2 without any code modification.
Enabling this support by adding any flag, if any?

Thanks in advance

Regards,
Pialy


On Thu, Aug 24, 2017 at 5:30 PM, Mason <slash.tmp@xxxxxxx> wrote:
> On 24/08/2017 06:27, Pialy Ghosh wrote:
>
>> Our code written in C++ is compiled with GCC 3.2.1. The GCC we are
>> using is cross compiled for linux-ppc. Currently we are trying to
>> upgrade GCC compiler to 4.9.2 for our application. But getting
>> compilation error like below
>> lvalue required as left operand of assignment.
>>
>> As per the analysis we understood that from GCC 3.4 onward the
>> cast-as-lvalue extension has been removed for C++.
>>
>> Is it possible to solve this error, without changing our code? Like
>> enabling any flag in latest 4.9.2 compiler?
>
> Perhaps it might be useful if you provided a small testcase
> to demonstrate your issue.
>
> Also, it's unusual to use 4.9.2 when 4.9.4 is available.
>
> It might also be worth pointing out that the 4.9 branch is
> no longer supported upstream.
>
> Regards.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux