secure-software-engineering / phasar

A LLVM-based static analysis framework.
Other
919 stars 140 forks source link

PointsToInfo.cpp:64:3: error: implicit instantiation of undefined template 'std::vector<const llvm::Value *>' #718

Closed yurivict closed 1 month ago

yurivict commented 2 months ago

Bug description

Build fails because lib/Pointer/PointsToInfo.cpp doesn't have #include <vector>:

/wrkdirs/usr/ports/devel/phasar/work/phasar-2403/lib/Pointer/PointsToInfo.cpp:64:3: error: implicit instantiation of undefined template 'std::vector<const llvm::Value *>'
  getInterestingPointersAtImpl(ByConstRef<n_t> /*AtInstruction*/) const {
  ^
/usr/include/c++/v1/iosfwd:260:28: note: template is declared here
class _LIBCPP_TEMPLATE_VIS vector;
                           ^

log

Context (Environment)

Operating System:

Build Type:

Possible solution

We are happy to discuss possible solutions to this problem, especially if it originates from a design flaw.

Example files

Files:

fabianbs96 commented 2 months ago

Hi @yurivict, thanks for pointing this out. It indeed seems to be an issue, although I could not reproduce it on my system. Can you check, whether #719 fixes it?

yurivict commented 2 months ago

Yes, this patch fixes it.