Hi,
I am worried that this is something really stupid on my end and not a
bug, but I do not see any issue with my code.
$ cat main.chpl
config const n = 100000;
proc main() {
var temp : int = 0;
temp = 1;
forall i in {1..n} do {
if (i == 0) {
temp = 1;
}
}
writeln("temp = ", temp);
}
$ chpl main.chpl
main.chpl:3: In function 'main':
main.chpl:8: error: illegal lvalue in assignment
$ chpl --version
chpl Version 1.12.0
Copyright (c) 2004-2015, Cray Inc. (See LICENSE file for more details)
The code compiles just fine if I replace the forall with a simple for
loop, so I am not sure why I see this error when using the forall loop.
-Jens
--
Keep your feet on the ground and keep reaching for the stars.
- Casey Kasem
===============================================================
Dr. rer. nat. Jens Breitbart
Lehrstuhl für Rechnertechnik und Rechnerorganisation, I10
Institut für Informatik, Technische Universität München
Boltzmannstr. 3, D-85748 Garching bei München, Germany
Tel.: +49/89/289-18450, FAX: +49/89/289-17662
===============================================================
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs