Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Issue 2964573002: Avoid constexpr compiler bug in VS 2017 (Closed)

Created:
3 years, 5 months ago by brucedawson
Modified:
3 years, 5 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M media/filters/vpx_video_decoder.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
brucedawson
Your change yesterday triggered a VS 2017 compiler bug. How does this workaround look? The ...
3 years, 5 months ago (2017-06-29 20:17:11 UTC) #4
DaleCurtis
Hah, exciting. lgtm
3 years, 5 months ago (2017-06-29 20:22:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2964573002/1
3 years, 5 months ago (2017-06-29 23:10:59 UTC) #10
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 23:15:01 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/60ce12e4bf84419b990ae44ebb87...

Powered by Google App Engine
This is Rietveld 408576698