Coder Social home page Coder Social logo

Comments (7)

fbrausse avatar fbrausse commented on June 10, 2024

With #1739 merged, which adds VarTemplate and VarTemplatePartialSpecialization, only this is needed, I believe:

diff --git a/src/clang-c-frontend/clang_c_convert.cpp b/src/clang-c-frontend/clang_c_convert.cpp
index 8b275ac727..0291c20860 100644
--- a/src/clang-c-frontend/clang_c_convert.cpp
+++ b/src/clang-c-frontend/clang_c_convert.cpp
@@ -116,6 +116,7 @@ bool clang_c_convertert::get_decl(const clang::Decl &decl, exprt &new_expr)
 
   // Declaration of variables
   case clang::Decl::Var:
+  case clang::Decl::VarTemplateSpecialization:
   {
     const clang::VarDecl &vd = static_cast<const clang::VarDecl &>(decl);
     return get_var(vd, new_expr);

and some test cases, probably.

from esbmc.

lucasccordeiro avatar lucasccordeiro commented on June 10, 2024

A PR to fix this issue would be welcome here ;-)

from esbmc.

intrigus-lgtm avatar intrigus-lgtm commented on June 10, 2024

@lucasccordeiro from me?

from esbmc.

fbrausse avatar fbrausse commented on June 10, 2024

@intrigus-lgtm or from me ;)

from esbmc.

lucasccordeiro avatar lucasccordeiro commented on June 10, 2024

@intrigus-lgtm: can I ask you whether you could submit a PR that fixes this issue? :-)

from esbmc.

intrigus-lgtm avatar intrigus-lgtm commented on June 10, 2024

Can try this weekend.
After that I can then submit some new bugs^^

from esbmc.

lucasccordeiro avatar lucasccordeiro commented on June 10, 2024

Great. Many thanks, @intrigus-lgtm.

from esbmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.