// 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 d{
{
let b{
struct c<T where g:a{
class A{
protocol B
class B<d{
{
}
let a=B
}
}}}}if true{
