Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add futures for some bugs exposed by GSoC collections work #7318

Merged
merged 2 commits into from
Sep 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions test/classes/elliot/non-captured-virtual-return.bad
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
internal error: MIS0558 chpl Version 1.16.0 pre-release (45e89ca37f)

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.

10 changes: 10 additions & 0 deletions test/classes/elliot/non-captured-virtual-return.chpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class Parent {
proc foo() { return (3, 3); }
}

class Child: Parent {
proc foo() { return (1,1); }
}

var child: Parent = new Child();
child.foo();
1 change: 1 addition & 0 deletions test/classes/elliot/non-captured-virtual-return.future
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bug: not capturing return value of virtual calls casues compiler segfault (#6542)
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
internal error: BAS0313 chpl Version 1.16.0 pre-release (f8e9da11d6)

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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class Parent {
iter these(): int { halt("Should not be called..."); yield 1; }
iter these(param tag: iterKind): int where tag == iterKind.standalone { halt("Should not be called..."); yield 2;}
iter these(param tag: iterKind): int where tag == iterKind.leader { halt("Should not be called..."); yield 3; }
iter these(param tag: iterKind, followThis): int where tag == iterKind.follower { halt("Should not be called..."); yield 4; }
}

class Child: Parent {
iter these(): int { yield 1; }
iter these(param tag: iterKind): int where tag == iterKind.standalone { yield 2;}
iter these(param tag: iterKind): int where tag == iterKind.leader { yield 3; }
iter these(param tag: iterKind, followThis): int where tag == iterKind.follower { yield 4; }
}

var child: Parent = new Child();

for c in child do writeln(c);
forall c in child do writeln(c);
forall c in zip(child, child) do writeln(c);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bug: virtual parallel iterators cause compiler segfault (#6998)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1
2
(4, 4)