You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When applying forwarding to a variable declaration, I got an internal error. At first, I was worried it was a case of the feature being brittle in an advanced use case, but it turns out I just had something more akin to a syntax error in my code that caused the issue.
Internal errors indicate a bug in the Chapel compiler,and we're sorry for the hassle. We would appreciate your reporting this bug --please see https://chapel-lang.org/bugs.html for instructions.
Is this a blocking issue with no known work-arounds?
no, the workaround is to fix the user error. E.g., in the example below, I should've used something more like var m: map(int, real);
Steps to Reproduce
Source Code:
use Map;
class C {
forwardingvar map(int, real);
}
var myC =new C();
myC.add(1, 2.3);
Summary of Problem
Description:
When applying
forwarding
to a variable declaration, I got an internal error. At first, I was worried it was a case of the feature being brittle in an advanced use case, but it turns out I just had something more akin to a syntax error in my code that caused the issue.In developer mode, this shows up as:
In user mode, it's:
Is this a blocking issue with no known work-arounds?
no, the workaround is to fix the user error. E.g., in the example below, I should've used something more like
var m: map(int, real);
Steps to Reproduce
Source Code:
Associated Future Test(s):
test/classes/forwarding/forwardToNonVar.chpl
#25068Configuration Information
chpl --version
:chpl version 2.1.0 pre-release (af0a260238)
The text was updated successfully, but these errors were encountered: