Hi Greg,

Specifying the full domains in the formal arguments of analyze_attempts 
is fine, although it might have negative performance implications.

Another workaround is to leave 'attempts' fully generic, or use a 
'where' clause, e.g.:

proc analyze_attempts(tries : [] tryinfo, attempts : []) {  ... }

or

proc analyze_attempts(tries : [] tryinfo, attempts : [])
   where attempts.eltType: [1..nfail] attemptinfo
{ ... }

Vass

On 07/02/15 09:12, Greg Kreider wrote:
>
> Hi,
>
> A while back I'd reported a compilation failure with an procedure
> having an array-of-array argument.  (There's a test case submitted
> for it.)
>
> It happened again this morning.  The error went away by specifying
> the domain in the argument list:
>
>     var tries : [1..ntry] tryinfo;
>     var attempts : [1..ntry][1..nfail] attemptinfo;
>     /* run the analysis */
>     analyze_attempts(tries, attempts);
>
>     proc analyze_attempts(tries : [] tryinfo,
>                           attempts : [][] attemptinfo) { .. }
>
> fails with
>     tst.chpl:820: In function 'analyze_attempts':
>     tst.chpl:820: error: unresolved call
>        'chpl__buildArrayRuntime Type(nil, type attemptinfo)'
>     $CHPL_HOME/modules/internal/ChapelArray.chpl:216: note:
>        candidates are:
>        chpl__buildArrayRuntimeType(dom: domain, type eltType)
>
> Changing to
>     proc analyze_attempts(tries : [1..ntry] tryinfo,
>                           attempts : [1..ntry][1..nfail] attemptinfo)
> and the compile succeeded.
>
> I can't remember if you had said this would solve the problem last
> time (and can't find it in e-mail).  If not, maybe it will help
> track down the solution.
>
> Greg K.
>
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Chapel-bugs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chapel-bugs
>

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs

Reply via email to