[LLVMbugs] [Bug 19516] New: dllimport on methods with definitions causes assertion failure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 22 16:54:30 PDT 2014


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

            Bug ID: 19516
           Summary: dllimport on methods with definitions causes assertion
                    failure
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

struct X {
  __declspec(dllimport) static int r() { return 5; }
};

int main() {
    return X::r();
}

Building the following with clang-cl fails with:

Function is marked as dllimport, but not external.
i32 ()* @"\01?r at X@@SAHXZ"
fatal error: error in backend: Broken function found, compilation aborted!
clang-3.5: error: clang frontend command failed with exit code 70 (use -v to
see invocation)

-- 
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/20140422/667e6f21/attachment.html>


More information about the llvm-bugs mailing list