Fixing error: "member may not be initialized" due to constexpr at Windows #48836
Fixing error: "member may not be initialized" due to constexpr at Windows #48836datumbox wants to merge 4 commits intopytorch:masterfrom
Conversation
💊 CI failures summary and remediationsAs of commit ec359a7 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 1 failure confirmed as flaky and can be ignored:
This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group. This comment has been revised 11 times. |
| // explicitly instantiate the template, i.e. push<int>(int) works, push(int) | ||
| // does not) | ||
| static constexpr size_t kBufferSize = 256; | ||
| static CONSTEXPR_EXCEPT_WIN_CUDA size_t kBufferSize = 256; |
There was a problem hiding this comment.
Are you sure the same treatment as above isn't needed here?
There was a problem hiding this comment.
This did not seem to have caused any issues. I can check the tests and if I get any indication I can give it the same treatment.
ezyang
left a comment
There was a problem hiding this comment.
Seems worth commenting why constexpr can't be used in ir.h, and also worth commenting that ::Kind cannot be relied on statically (whereas previously it could).
facebook-github-bot
left a comment
There was a problem hiding this comment.
@datumbox has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
CI tests fail due to CircleCI outage. |
Codecov Report
@@ Coverage Diff @@
## master #48836 +/- ##
==========================================
- Coverage 80.78% 80.78% -0.01%
==========================================
Files 1866 1866
Lines 201387 201387
==========================================
- Hits 162697 162691 -6
- Misses 38690 38696 +6 |
Fixes #48835
Fixes #48716