bsc-pm / mcxx

Mercurium is a C/C++/Fortran source-to-source compilation infrastructure aimed at fast prototyping developed by the Programming Models group at the Barcelona Supercomputing Center
GNU Lesser General Public License v3.0
69 stars 23 forks source link

Fix wrong conversion in assignment #2

Closed rofirrim closed 7 years ago

rofirrim commented 7 years ago

The value of the right hand side of an assignment should be converted to a value of the left hand side, not to a location like the left hand side.

For instance, in the following code

INTEGER :: A
REAL :: B
A = B

B happens to be converted to (lvalue) reference to signed int instead of just to signed int.

rofirrim commented 7 years ago

Thanks!