Am 24.08.2011 13:57, schrieb Vijay Saraswat:
> On 8/24/2011 7:27 AM, Andreas Zwinkau wrote:
>> This little program gives me a strange error. I tried various
>> optimization and debug flags with the same result. Can you reproduce that?
>>
>> class Main
>> {
>>      public static def main(args:Array[String])
>>      {
>>              val x = int.parse(args(0));
>>      }
>> }
>>
>> $ x10c++ -version
>> x10c++ version 2.2.0
>> Polyglot compiler toolkit version 3.2.0 (2010-06-03 19:23:58)
>> $ x10c++ Main.x10
>> /afs/info.uni-karlsruhe.de/user/zwinkau/dev/invadeX10/integration_invasive/src/Main.x10:6:
>> Cannot get LocalDef before type-checking local variable.
>> 1 error.
> Hmm. No. I just tried on a MacOs server (serenity), same x10c++ -version
> string as you show, and it compiles with 1 dynamically checked call
> (because of args:Array[String] instead of args:Array[String](1)).

Ok, my problem was that did not exactly have version 2.2.0, but also 
commit 22441 to fix XTENLANG-2838. This is probably fixed in trunk.

-- 
Andreas Zwinkau

  Karlsruhe Institute of Technology (KIT)
  Institut für Programmstrukturen und Datenorganisation (IPD)
  Lehrstuhl Prof. Snelting
  Adenauerring 20a
  76131 Karlsruhe

  Phone:  +49 721 608 48351
  Fax:    +49 721 608 48457
  Email:  zwin...@kit.edu
  Web:    http://pp.info.uni-karlsruhe.de/person.php?id=107

  KIT – University of the State of Baden-Wuerttemberg and
  National Research Center of the Helmholtz Association

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to