Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-984

[Linux/gcc] __has_trivial_destructor fails for reference types

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: External
    • Labels:
      None
    • Environment:

      gcc-4.3

    • Severity:
      Incorrect Behavior

      Description

      The __has_trivial_destructor() support routine returns false for references. The latest draft specifically says...

      T is a trivial type (3.9) or a reference type or a class type with a trivial destructor (12.4) or an array of such a class type.

      We should be able to work around this issue by explicitly checking for references.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vitek Travis Vitek
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: