Git Product home page Git Product logo

Comments (4)

d-frey avatar d-frey commented on August 24, 2024

Do you mean version 3.2.6 instead of 2.3.6?

Also, we have CI jobs for VS 2022 which are passing. See https://github.com/taocpp/PEGTL/actions/runs/3950723230. I'm therefore not sure what to do. Can you figure out a fix and create a PR?

from pegtl.

sephirot47 avatar sephirot47 commented on August 24, 2024

Yes, I meant 3.2.6 and 3.2.5 xD (I have already edited the issue and message)
I would really love to fix it myself, but the error trace is pretty obscure. I tried but didn't manage to fix it 😞
If the jobs pass, maybe it's something I have misconfigured locally, but I just downloaded and tested the versions without touching anything, and 3.2.5 worked while 3.2.6 & 3.2.7 don't. Sorry I can not help much more with this 😖

from pegtl.

untrioctium avatar untrioctium commented on August 24, 2024

I experienced this on an older version of MSVC, but after upgrading to 19.34.31942.0, I can no longer reproduce. Looks like a fixed compiler bug.

from pegtl.

untrioctium avatar untrioctium commented on August 24, 2024

I think I may have found the issue, as I experienced it again. Looks like if you have type defined at global scope in your code where parse_tree can see it, MSVC will see this expression at 3.2.7's parse_tree.hpp at line 436:

internal::make_control< Node, Selector, Control >::template type

And not be happy about type there, even though it should be obviously a name under make_control. I guess it is a compiler bug? type might be a silly name to pick at global scope, but I feel like this should work.

from pegtl.

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.