Hey Jeff,

Correction - the internal error still exists in the master branch. I will
add a JIRA issue for this bug.

Thanks again for letting us know.

Best,
Ben

On 12/15/15, 5:16 PM, "Ben Albrecht" <[email protected]> wrote:

>Hey Jeff,
>
>Thank you for the bug report and for complying with Chapel compiler¹s
>request. In the current master branch, this error message has been
>improved and no longer suggests a bug is at fault.
>
>Best,
>Ben
>
>On 12/14/15, 7:42 AM, "Hammond, Jeff R" <[email protected]> wrote:
>
>>The Chapel compiler told me to report this, although the cause is a
>>trivially incorrect program that serves to demonstrate my ignorance more
>>than anything else, but since I rigorously comply with all compiler
>>outputsŠ ;-)
>>
>>Jeff
>>
>>Bad Code:
>>
>>
>>proc main() {
>>
>>    if (numLocales<2) {
>>
>>        writeln("You need to run with >1 locale");
>>
>>        exit;
>>
>>    }
>>
>>}
>>
>>Good code:
>>
>>
>>proc main() {
>>
>>    if (numLocales<2) {
>>
>>        writeln("You need to run with >1 locale");
>>
>>        exit(0);
>>
>>    }
>>
>>}
>>
>>Compiler output (with bad code obviously):
>>
>>
>>chpl  bug.chpl -o bug.x
>>
>>bug.chpl:1: In function 'main':
>>
>>bug.chpl:3: internal error: EXP0351 chpl Version 1.12.0
>>
>>
>>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.
>>
>>
>>make: *** [bug.x] Error 1
>>
>>
>>-------------------------------------------------------------------------
>>-
>>----
>>_______________________________________________
>>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

------------------------------------------------------------------------------
_______________________________________________
Chapel-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-bugs

Reply via email to