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
    1

    Bad code generation with VS2017 15.8.9 /O2 in finding minimum position in array (vectorization)

    cppcompilervisual studio 2017 version 15.8C++

    avatar image van der Heijden, Hendrik reported Nov 08, 2018 at 01:52 PM

    repro.zip (2.8 kB)
    thub.nodes.view.add-new-comment
    Add comment Show 8

    Add Comment

    10 |10000 characters needed characters left characters exceeded
    avatar image Karen Huang [MSFT] · Nov 09, 2018 at 10:12 AM 0
    Share
    avatar image van der Heijden, Hendrik Karen Huang [MSFT] · Nov 09, 2018 at 10:15 AM 0
    Share
    avatar image Karen Huang [MSFT] van der Heijden, Hendrik · Nov 09, 2018 at 10:31 AM 0
    Share
    avatar image Rui Zhang [MSFT] · Nov 26, 2018 at 05:36 PM 0
    Share
    avatar image van der Heijden, Hendrik Rui Zhang [MSFT] · Nov 27, 2018 at 10:14 AM 0
    Share
    avatar image Rui Zhang [MSFT] van der Heijden, Hendrik · Nov 27, 2018 at 05:22 PM 0
    Share
    avatar image van der Heijden, Hendrik Rui Zhang [MSFT] · Jan 09 at 07:37 AM 0
    Share
    avatar image Jerry Feng [MSFT] · Jan 30 at 03:10 AM 0
    Share

    Solutions

    · Add your solution
    0

    Solution by avatar image Rui Zhang [MSFT] · Jan 14 at 06:41 PM

    Hi Hendrik,

    Sorry for letting you wait for this long. The fix is under testing right now. I'll update once the fix is checked in so I have the exact release number. Please bear with me. It should not take very long.

    Thanks,

    Rui Zhang

    Microsoft Visual C++

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

    Add Comment

    10 |10000 characters needed characters left characters exceeded

    Add a Solution

    Up to 5 attachments (including images) can be used with a maximum of 2.1 GB each and 2.1 GB total.

    Follow

    45 People are following this

    Related Problems

    Invalid constexpr calculation result
    0 Solution

    Errors compiling fold expressions inside class template definition
    0 Solution

    Implicitly captured variable is interpreted as outer scope type.
    0 Solution

    dllimport data ICE on x86-32 and with optimizations only
    0 Solution

    Error C2065 when using /permissive- (works on g++ and clang)
    0 Solution

    MSVC IntelliSense does not understand [[maybe_unused]] on function arguments
    0 Solution

    Compilation error occured by some std::max/min expression in template class when only conformance mode (/permissive-), after vs15.8.2
    0 Solution

    Inconsistency between MSVC x86 and x64 with elision and operator overloads
    0 Solution

    Path to project
    0 Solution

    std::unique_lock code in lambda does not work
    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
    • Features
    • Users
    • Badges