bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Akim Demaille
Subject: Re: Visual Studio - win_bison creates tab.h file exceeding compiler limits
Date: Tue, 10 Nov 2020 07:06:39 +0100

Thanks for the answer.  But please, keep the list in CC.

> Le 9 nov. 2020 à 20:26, Jot Dot <jotdot@shaw.ca> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]