Index: ASTContext.cpp =================================================================== --- ASTContext.cpp +++ ASTContext.cpp @@ -364,14 +364,19 @@ } else { RC = getRawCommentForDeclNoCache(I); OriginalDeclForRC = I; - RawCommentAndCacheFlags Raw; + // TODO: these next two lines helps to workaround msvs 2015 + // internal compiler error. This is a replacement + // of delayed assignment RedeclComments[I] = Raw + // which caused that issue. + RedeclComments[I] = RawCommentAndCacheFlags(); + RawCommentAndCacheFlags &Raw = RedeclComments[I]; + // if (RC) { Raw.setRaw(RC); Raw.setKind(RawCommentAndCacheFlags::FromDecl); } else Raw.setKind(RawCommentAndCacheFlags::NoCommentInDecl); Raw.setOriginalDecl(I); - RedeclComments[I] = Raw; if (RC) break; }