Hi Brad,
You are right, your code sample prints a correct error message
("recursive_declaration_test.chpl:2: error: called recursively at this
point"), but this one causes internal error ("internal error: MIS0386
chpl Version 1.11.0.3ae2867"):
record Foo {
var foo: [1..10] Foo;
}
Regards,
Attila
On Tue, Jun 30, 2015 at 1:23 AM, Brad Chamberlain <[email protected]> wrote:
>
> Hi Attila --
>
> Thanks for sending in this bug report. This is a known issue that we have
> unfortunately been slow in correcting. It's listed in the STATUS file as:
>
> - Recursive records result in function resolution error or internal
> compiler error.
>
> I could've sworn that at some point in the past we printed a better error
> message for at least the simple case of a recursive record:
>
> record Foo {
> var foo: Foo;
> }
>
> but can't find any sign of it now, so perhaps I imagined it.
>
> Thanks again for making sure we were aware of this issue,
> -Brad
>
>
>
>
> On Thu, 25 Jun 2015, Attila Sragli wrote:
>
>> Hi,
>>
>> When I try to compile the following code, it triggers an internal
>> error (internal error: MIS0386 chpl Version 1.11.0.3a08434):
>>
>> var D: domain(1);
>>
>> record Foo {
>> var foo: [D] Foo;
>> }
>>
>> I know I shouldn't do that, since it is a recursive declaration, but
>> the "recursive_alloc_test.chpl:2: error: called recursively at this
>> point" message may be more informative if I accidentally make this
>> kind of mistake.
>>
>> Regards,
>>
>> Attila
>>
>>
>> ------------------------------------------------------------------------------
>> Monitor 25 network devices or servers for free with OpManager!
>> OpManager is web-based network management software that monitors
>> network devices and physical & virtual servers, alerts via email & sms
>> for fault. Monitor 25 devices for free with no restriction. Download now
>> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
>> _______________________________________________
>> 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