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
This turns out to be a pretty simple fix once I found the problematic code. You found an edge case I wasn't accounting for in the codegen for exhaustive match.
jemc
changed the title
Segfaults with matching on subset of union type
Compiler crash on exhaustive match where last case is a union subset.
Jul 15, 2017
(Maybe related to #2028 ?)
Given this start of a program that uses a
Tester
class:The following two definitions of
Tester
segfault the compiler:https://is.gd/jgPLZL
https://is.gd/cgfwRR
EDIT: The error for this one is fixed on master via #2002, so that makes this identical to the one above.
And this one resulted in a compile-time error with the 0.15.0 tagged release, but segfaults the compiler on the master branch:https://is.gd/DUdo1i
The text was updated successfully, but these errors were encountered: