Giter VIP home page Giter VIP logo

Comments (5)

DepthDeluxe avatar DepthDeluxe commented on May 24, 2024

This error is coming from a source file generated by bison as the source file gets generated on build.

I get this same error with msys2 gcc 7.3.0 and bison 3.2. I looked at the OSX homebrew bison package and it uses bison 3.2.1 which is the latest (released 2018-11).

@ajsutrave the project builds successfully if you use either bison 3.0.4 or 3.1. It must be some issue with the new minor version release.

Would be great if someone could figure out why bison 3.2.* is causing the error message.

from cascade.

eschkufz avatar eschkufz commented on May 24, 2024

I think the issue is that YY_RVREF is a macro. The preprocessor don't know anything about templates, so it's interpreting the comma in the templated type as an argument separator. Essentially, it's parsing the statement as:

YY_VREF((std::pair < T1) , (T2>))

rather than

YY_VREF((std::pair<T1, T2>));

We can fix this by adding typedefs to verilog.yy:

typedef std::pair<T1, T2> temp_name

and then referring to the typedef everywhere else in verilog.yy so that when bison gets around to codegen we end up with

YY_RVREF(temp_name)

I'll update the FAQ at the end of the README with notes about which versions of bison work until this gets sorted out.

from cascade.

ajsutrave avatar ajsutrave commented on May 24, 2024

Downgrading bison worked for me. Let us know if you do end up typedefing the template

from cascade.

eschkufz avatar eschkufz commented on May 24, 2024

Will do --- reopening this ticket as a fix request now that we know what's going on.

from cascade.

eschkufz avatar eschkufz commented on May 24, 2024

(Fixed as of most recent pull request.)

from cascade.

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.