This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: problem with the gcc 3.4.4


On 02 March 2006 00:02, Mike Stump wrote:

> On Mar 1, 2006, at 3:47 AM, HASSAN AL MOATASSIME wrote:
>> I have a problem with the compiler gcc 3.4.4.
>> With the gcc 3.2 compiler, i have no problem with the following
>>                instruction : creal(U0[i])=PartieReelle;
>>                cimag(U0[i])=PartieImaginaire;
>> 
>> Now with the gcc 3.4.4 i have the folowing message :
>> 
>> -- erreur: invalid lvalue in assignment
> 
> Wrong mailing list, please use gcc-help.
> 
> I suspect that your code is invalid C/C++ code and that you may want
> to read up on what language you're using and then change your code to
> conform to that language.


  Probably creal/cimag used to be implemented as macros which simply
dereferenced the relevant member of the complex number struct meaning they
could be effectively used as lvalues, but now they're implemented as functions
and actually return a value not a reference.  (To mix my terminology
slightly).  

  Looks to me like it's yet another case of

 http://gcc.gnu.org/gcc-3.4/changes.html#cplusplus


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]