[LLVMbugs] [Bug 20017] New: MS ABI: Inheritance model not defined during emisison of global variable in CodeGen

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jun 12 14:52:15 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140612/9302a88d/attachment.html>


More information about the llvm-bugs mailing list