[LLVMbugs] [Bug 9563] New: Crash-on-invalid in IsStandardConversion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 25 17:39:48 PDT 2011


           Summary: Crash-on-invalid in IsStandardConversion
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

struct Foo {
  template <typename T> bool f(T t) {

void g(Foo foo) {
  if (foo.f<int>)

With assertions on, we get:
lib/Sema/SemaOverload.cpp:1081: bool clang::IsStandardConversion(clang::Sema&,
clang::Expr*, clang::QualType, bool, clang::StandardConversionSequence&, bool):
Assertion `S.Context.hasSameType(FromType,
S.FixOverloadedFunctionReference(From, AccessPair, Fn)->getType())' failed.

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