Skip to content

Commit

Permalink
Fix MSVC stack overflow issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
xfxyjwf authored and TeBoring committed Oct 10, 2016
1 parent e0a6e52 commit ae9455c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/google/protobuf/util/internal/json_stream_parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ class JsonStreamParserTest : public ::testing::Test {
}


#ifndef _MSC_VER
// TODO(xiaofeng): We have to disable InSequence check for MSVC because it
// causes stack overflow due to its use of a linked list that is desctructed
// recursively.
::testing::InSequence in_sequence_;
#endif // !_MSC_VER
MockObjectWriter mock_;
ExpectingObjectWriter ow_;
};
Expand Down

0 comments on commit ae9455c

Please sign in to comment.