[LLVMbugs] [Bug 23179] New: Warn on missing exports in microsoft mode?
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 9 13:52:03 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23179
Bug ID: 23179
Summary: Warn on missing exports in microsoft mode?
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Consider something like this:
struct CpuProfileDeoptFrame {
int script_id;
};
// XXX
//template class V8_EXPORT std::vector<v8::CpuProfileDeoptFrame>;
struct V8_EXPORT CpuProfileDeoptInfo {
std::vector<CpuProfileDeoptFrame> stack;
};
Unless the line marked XXX is present, cl will warn on this with
2>D:\src\v8\include/v8-profiler.h(31): warning C4251:
'v8::CpuProfileDeoptInfo::stack' : class
'std::vector<v8::CpuProfileDeoptFrame,std::allocator<_Ty>>' needs to have
dll-interface to be used by clients of struct 'v8::CpuProfileDeoptInfo'
2> with
2> [
2> _Ty=v8::CpuProfileDeoptFrame
2> ] (..\..\src\compiler\change-lowering.cc)
There's probably a good reason for that -- should we warn on this too?
--
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/20150409/9d87b0eb/attachment.html>
More information about the llvm-bugs
mailing list