Microsoft
Visual Studio
Visual Studio
  • Home
    • Problems
    • Suggestions
  • Downloads
    • Visual Studio IDE
    • Visual Studio Code
    • Azure DevOps
    • Team Foundation Server
    • Accounts and Subscriptions
  • Subscriber Access
      • Microsoft 365
      • Azure
      • Office 365
      • Dynamics 365
      • SQL
      • Windows 10
      • Windows Server
      • Enterprise Mobility + Security
      • Power BI
      • Teams
      • Visual Studio
      • Surface for Business
      • AI
      • Internet of Things
      • Azure Cognitive Services
      • Quantum
      • Research
      • Docs
      • TechNet
      • Developer Network
      • Windows Dev Center
      • Windows IT Pro Center
      • FastTrack
      • Partner Network
      • Solution Providers
      • Partner Center
      • Cloud Hosting
      • Education
      • Financial services
      • Government
      • Health
      • Manufacturing & resources
      • Retail
      • Security
      • Licensing
      • AppSource
      • Azure Marketplace
      • Events
    • View all
    Sign in

    Developer Community

    Get help from our community supported forum
    • Home /
    • C++ /
    Searched and didn’t find your feedback?
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    or
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    Visual Studio
    Visual Studio for Mac
    .NET
    C++
    Azure DevOps
    TFS
    2

    Possible bad codegen on union/bitfield assignment in VS2017 15.8

    cppcompilerFixed In: Visual Studio 2017 version 15.9.4

    avatar image François-Xavier Roure reported Oct 30, 2018 at 12:47 PM

    badcodegen.zip (1.5 kB)
    thub.nodes.view.add-new-comment
    Add comment Show 7

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Roger Andrews · Oct 30, 2018 at 03:52 PM 0
    Share
    avatar image Karen Huang [MSFT] · Oct 31, 2018 at 03:21 AM 0
    Share
    avatar image Pratap Chandar [MSFT] · Nov 06, 2018 at 02:08 AM 0
    Share
    avatar image François-Xavier Roure Pratap Chandar [MSFT] · Nov 16, 2018 at 01:58 PM 0
    Share
    avatar image Pratap Chandar [MSFT] François-Xavier Roure · Nov 16, 2018 at 06:24 PM 0
    Share
    Show more comments
    avatar image Quella Zhang [MSFT] · Dec 08, 2018 at 03:56 AM 0
    Share

    Solutions

    · Add your solution
    0

    Solution by avatar image Blair Wang [MSFT] · Dec 12, 2018 at 01:46 AM

    This issue has been fixed and is now available in our latest update. You can download the update via the in-product notification or from here: https://visualstudio.microsoft.com/vs/ Thanks to all who provided feedback and votes for this problem.

    thub.nodes.view.add-new-comment
    Add comment · Share

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    Follow

    33 People are following this

    Related Problems

    [MSConnect 2485858] Incorrect Issue of Warning C4754
    0 Solution

    Test Adapter for Google Test can not declare WorkingDir per Project (repost)
    1 Solution

    [MSConnect 1604618] C++ code analysis interprets SAL annotations incorrectly
    1 Solution

    "warning C4103: alignment changed after including header" when using /experimental:external
    0 Solution

    C4265 warning is flawed
    0 Solution

    [MSConnect 3138225] no IMAGE_SCN_CNT_UNINITIALIZED_DATA attribute in "#pragma section" created section
    0 Solution

    Bad code generation in LKG7
    1 Solution

    ICE on templated operator==
    0 Solution

    My ActiveX DLL seems unable to add COM method except if added manually.
    1 Solution

    Bug in noexcept member specifier
    0 Solution

    What's new

    • NEW Surface Pro 6
    • NEW Surface Laptop 2
    • NEW Surface Go
    • Xbox One X
    • Xbox One S
    • VR & mixed reality
    • Windows 10 apps
    • Office apps

    Store & Support

    • Account profile
    • Download Center
    • Sales & support
    • Returns
    • Order tracking
    • Store locations
    • Support
    • Buy online, pick up in store

    Education

    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education

    Enterprise

    • Microsoft Azure
    • Enterprise
    • Data platform
    • Find a solution provider
    • Microsoft partner resources
    • Microsoft AppSource
    • Manufacturing & resources
    • Financial services

    Developer

    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Network
    • TechNet
    • Microsoft developer program
    • Channel 9
    • Office Dev Center

    Company

    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact us
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2018
    • Anonymous
    • Sign in
    • Spaces
    • Visual Studio
    • Visual Studio for Mac
    • .NET
    • C++
    • Azure DevOps
    • TFS
    • Explore
    • Topics
    • Problems
    • Problems
    • Problems
    • Features
    • Features
    • Features
    • Users
    • Badges