Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23420

Remove use of GNU extensions in parse_number_test.cpp

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.4.14, 3.5.2
    • Affects Version/s: 3.2.3
    • Component/s: Build, Internal Code, Packaging
    • None
    • Environment:
      Discovered in Fedora 24. I think it is not OS dependent.
    • Fully Compatible
    • ALL
    • v3.4
    • Hide

      Every build with enable c++11

      Show
      Every build with enable c++11
    • Platforms 2017-01-23

      MongoDB in its code use hexadecimal floats. MongoDB requires c++11 support, but it enables it by -std=c++11 compiler flag.

      It should be used -std=gnu++11 instead of it. Hexadecimal floats are not part of c++11 and are only in extensions. It was working but with latest version of gcc 6.0 it is failing.

      See https://bugzilla.redhat.com/show_bug.cgi?id=1321986

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mskalick Marek Skalický
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: