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

            Bug ID: 20017
           Summary: MS ABI: Inheritance model not defined during emisison
                    of global variable in CodeGen
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

consider:
template <typename T>
struct A {
  static const int T::*x;
  const int T::*f() { return x; }
};

struct B : A<B> {};
auto a = &B::f;

run with:
~/llvm/build/bin/clang -cc1 -x c++ /var/tmp/mpt.cpp -S -o - -triple
i686-pc-win32 -fms-compatibility -std=c++11


This causes us to crash.

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