New Issue: Compiler segfault when catch filter type is returned from a function

17275, "leekillough", " Compiler segfault when catch filter type is returned from a function", "2021-02-26T01:54:43Z"

Summary of Problem

Compiler segfault when catch filter type is returned from a function

It does not matter if the function has parentheses or not.

Steps to reproduce

Source Code:

proc t type return Error;
try! { } catch e : t { }

Compile command:

chpl testcase.chpl

Execution command:

 $ ./bin/darwin-x86_64/chpl  testcase.chpl
internal error: seg fault [util/misc.cpp:889]
frame #1: 0x0000000100176125 chpl`TryStmt::accept(this=0x0000000107589700, visitor=0x00007ffeefbff498) at TryStmt.cpp:88:18
   85  	
   86  	    for_alist(c, _catches) {
   87  	      CatchStmt* catchStmt = toCatchStmt(c);
-> 88  	      catchStmt->accept(visitor);
   89  	    }
   90  	  }

catchStmt is nullptr.

Associated Future Test(s):

n/a

Configuration Information

Trunk