// RUN: not --crash %target-swift-frontend %s -parse

// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing

func b
{{
var A{struct B<T where a=a{
class a
class b{class B<T where k:A{
var _=a{
}
}}}
}}
class b{
var _=a{
}
class a
class a
