[LLVMbugs] [Bug 13443] New: [Windows] "Aliasing chain should end with function or global variable" assertion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 24 07:26:09 PDT 2012


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

             Bug #: 13443
           Summary: [Windows] "Aliasing chain should end with function or
                    global variable" assertion
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: timurrrr at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat aliasing_assertion.cpp
template<class T>
class Factory {
 public:
  static T* Create() { return new T; }
};

namespace {

class Type {
 private:
  friend class Factory<Type>;
  Type() {}
};

}

int main() {
  Type *c = Factory<Type>::Create();
}

At r160667,
$ clang -Xclang -cxx-abi -Xclang microsoft aliasing_assertion.cpp
Aliasing chain should end with function or global variable
void (%"class.<anonymous namespace>::Type"*)* @"\01??0Type@?A at AAE@XZ"
Broken module found, compilation aborted!

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