Use --detect-odr-violation if linking with a supported linker

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.1
    • Affects Version/s: None
    • Component/s: Build
    • Fully Compatible
    • Platforms 2017-01-23
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ODR = One definition rule. This would detect if there were two classes or functions with the same name in the same namespace even if they are never both included in the same translation unit.

      Currently this flag is only supported by gold although other linkers may have similar flags. Actual flag to be added to LINKFLAGS is:

      "-Wl,--detect-odr-violations".
      

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: