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

Remove use of GNU extensions in parse_number_test.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 3.2.3
    • 3.4.14, 3.5.2
    • Build, Internal Code, Packaging
    • None
    • 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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: