[LLVMbugs] [Bug 11462] New: __is_final intrinsic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 1 03:41:51 PST 2011


             Bug #: 11462
           Summary: __is_final intrinsic
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ganesh at barbati.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 7662
  --> http://llvm.org/bugs/attachment.cgi?id=7662
Patch that implements the __is_final intrinsic

I am attaching a patch that implements the __is_final() intrinsic function that
checks whether a class is declared final. In other words, the code:

struct A {};
struct B final {};

int main()
  std::cout << __is_final(A) << " " << __is_final(B) << "\n";

should output "0 1".

This intrinsic is motivated by the library bug #11461.

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