This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Regarding GCC 4.9.2 backward compatibility with 3.2.1
- From: Pialy Ghosh <pink dot pia at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Aug 2017 12:27:17 +0800
- Subject: Regarding GCC 4.9.2 backward compatibility with 3.2.1
- Authentication-results: sourceware.org; auth=none
Hi All,
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 onwards 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?
Thanks in advance.
Regards,
Pialy