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

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.3.0
    • 4.3.0
    • External
    • None
    • gcc-4.3

    • 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

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

            Dates

              Created:
              Updated: