[LLVMbugs] [Bug 9899] New: noexcept for destructors of scalars

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 11 08:14:37 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9899

           Summary: noexcept for destructors of scalars
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hhinnant at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


It would be wonderful if the following:

#include <iostream>

template <class T> T&& declval() noexcept;

int main()
{
    typedef int T;
    std::cout << noexcept(declval<T>().~T()) << '\n';
}

Output:

1

I would like to use this to build std::is_nothrow_destructible<T>.  At first
glance it seems to be working for everything but scalars.

Apple clang version 3.0 (trunk 131179) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin10.7.0
Thread model: posix

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list