Hi Damian, This looks like a bug that has since been fixed. Using today's master, this program compiles for me with and without --fast.
Does it work for you to use the workaround in your other version, ?asize and ?bsize ? Vass -----Original Message----- From: Damian McGuckin <[email protected]> Date: Thursday, July 2, 2020 at 5:47 AM To: Chapel-Sourceforge <[email protected]> Subject: Re: [Chapel-developers] Problems with Generic arrays Resent-From: Vassily Litvinov <[email protected]> Resent-Date: Thursday, July 2, 2020 at 5:47 AM On Thu, 2 Jul 2020, Damian McGuckin wrote: > The domain of 'a' and 'b' are the same. So I should be able to write: > > proc dot(const ref a : [?asize] ?T, ref b :[asize] T) : T > { > var s = 0.0:T; > > for (ai, bi) in zip(a, b) do > { > s += ai * bi; > } > return s; > } > > Chapel complains vehemently. Why? Sorry, I should clarify. chpl --fast will compile it cleanly. Without --fast, the compiler complains. Regards - Damian Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037 Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here Views & opinions here are mine and not those of any past or present employer _______________________________________________ Chapel-developers mailing list [email protected] https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.sourceforge.net_lists_listinfo_chapel-2Ddevelopers&d=DwICAg&c=C5b8zRQO1miGmBeVZ2LFWg&r=oLB5B1NUMuIoA3vEQK3rTEo73o1LsN18cOy0MHODzYI&m=8K_7weLIrgqUB05iiz_e0yfA1PlrBqr4QLY_WBK5_X0&s=KrgwBzYb8ISmn-SVnluP2AxPfhcTcKbgDgEyRHZJMnY&e= _______________________________________________ Chapel-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-developers
