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

             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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to