[LLVMbugs] [Bug 13445] New: No way to match explicit casts from Foo* -> any type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 24 07:53:25 PDT 2012


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

             Bug #: 13445
           Summary: No way to match explicit casts from Foo* -> any type
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Pidgeot18 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


hasSourceExpression only works for implicit casts, which isn't good enough.
Test case would be matching the conversion here:

struct PRCList {
  PRCList *head;
};

class nsSHistory : public PRCList {};

static PRCList *gList;

void foo() {
  nsSHistory *shist = static_cast<nsSHistory*>(gList);
}

-- 
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