Russel,
Thank you much for reporting this bug. We will fix it in Git. Meanwhile feel
free to apply this patch and rebuild the compiler - your program should compile
correctly:
-----------------------------------------------------------------------------
--- compiler/resolution/implementForallIntents.cpp
+++ compiler/resolution/implementForallIntents.cpp
@@ -1027,7 +1027,9 @@
asgnToCallTemp = call;
break;
}
- INT_ASSERT(asgnToCallTemp);
+
+ if (!asgnToCallTemp)
+ return NULL;
CallExpr* iterCall = toCallExpr(asgnToCallTemp->get(2));
INT_ASSERT(iterCall);
-----------------------------------------------------------------------------
Please let us know if this works for you.
Vassily
On 10/15/15 00:04, Russel Winder wrote:
> I just updated my Git master of the Chapel repository
> (af60ad09f8800dcf1602f328707f1f110ef924be) and compiled.
>
> |> chpl --version
> chpl Version 1.12.0.af60ad0
>
> I still get a compilation fail with the a reduce intent statement, so I
> thought it time to send in a formal bug report. I am assuming the
> standard tests for this construct are passing and that the issue
> centres on my environments.
>
> I use Debian Sid with GCC:
> gcc version 5.2.1 20151010 (Debian 5.2.1-22)
> and Fedora Rawhide with GCC:
> gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)
> for compiling the Chapel compiler, which I relocate to ~/Built/bin
>
> On the statement:
>
> forall i in 1..n with (+ reduce sum) { sum += 1.0 / (1.0 + ((i - 0.5) *
> delta) ** 2); }
>
> I get, on both platforms, the error message:
>
>
> $CHPL_HOME/modules/internal/ChapelIteratorSupport.chpl:209: internal error:
> IMP1030 chpl Version 1.12.0.af60ad0
> Note: This source location is a guess.
>
> Internal errors indicate a bug in the Chapel compiler ("It's us, not you"),
> and we're sorry for the hassle. We would appreciate your reporting this bug
> --
> please see http://chapel.cray.com/bugs.html for instructions. In the
> meantime,
> the filename + line number above may be useful in working around the issue.
>
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Chapel-bugs mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/chapel-bugs
>
------------------------------------------------------------------------------
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs