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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to