LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 21164 - -fms-compatibility: out-of-line definition of static data member not handled correctly
Summary: -fms-compatibility: out-of-line definition of static data member not handled ...
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: LLVM Codegen (show other bugs)
Version: unspecified
Hardware: PC All
: P normal
Assignee: Alexey Frolov
URL:
Keywords:
Depends on:
Blocks: 12477
  Show dependency tree
 
Reported: 2014-10-06 00:14 PDT by David Majnemer
Modified: 2015-05-20 07:32 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Majnemer 2014-10-06 00:14:40 PDT
consider:
struct C {
  static const int I = 5;
};

const int C::I;

We do not emit a definition of C::I even though both the standard and cl.exe both do.
Comment 1 David Majnemer 2014-10-06 00:16:25 PDT
I believe that this is a regression caused by r213304.
Comment 2 Alexey Frolov 2015-05-15 11:24:14 PDT
I've got an initial patch for this issue.
Will review and commit in a couple of days.

Alexey Frolov
=============
Software Engineer
Intel Compiler Team
Intel
Comment 3 Alexey Frolov 2015-05-20 07:32:36 PDT
Fixed in r237787.