Chromium Code Reviews
DescriptionAvoid constexpr compiler bug in VS 2017
The constexpr definition of kStaleFrameLimit in a lambda triggered an
internal compiler error in VS 2017. A bug is being filed but we want to
unblock VS 2017 builds while waiting for a fix.
Moving the definition to the global scope is safe and efficient because
it is still constexpr, so it just uses a bit of const space.
This bug was triggered by crrev.com/c/546917. A VS compiler bug was
filed here:
https://developercommunity.visualstudio.com/content/problem/74761/ice-on-constexpr-in-lambda-in-update-3-of-preview.html
BUG=683729
Review-Url: https://codereview.chromium.org/2964573002
Cr-Commit-Position: refs/heads/master@{#483536}
Committed: https://chromium.googlesource.com/chromium/src/+/60ce12e4bf84419b990ae44ebb876b727edce313
Patch Set 1 #
Messages
Total messages: 13 (9 generated)
|
|||||||||||||||||||