Re: Visual Studio - win_bison creates tab.h file exceeding compiler limits

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
Thanks for the answer.  But please, keep the list in CC.

> Le 9 nov. 2020 à 20:26, Jot Dot <[email protected]> a écrit :
> 
> re:
> > Could you please confirm it works as expected?  (don't use %define parse.assert).
> 
> Depends on what you have in mind wrt "as expected" :P
> 
> Answer: Yes?
> 
> Here is what I tested:
> Old version:
> %define parse.assert     -- With or without this, I had the C2026 error.
> New Version:
> %define parse.assert     -- With it, I have the error.
> Without that define, there is only one use of the YY_ASSERT in the tab.h file, which seems unrelated to the previous error:
> 
>     /// Construct and fill.
>     template <typename T>
>     semantic_type (YY_RVREF (T) t)
>     {
>       YY_ASSERT (sizeof (T) <= size);
>       new (yyas_<T> ()) T (YY_MOVE (t));
>     }
> 
> The tab.h file now works. I can compile the tab.cpp file without errors.
> 
> So I am assuming this is what you are expecting.
> 
> Thanks for your quick response with a good solution.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.