Re: Bison 3.6 requires runtime type information?

2020-06-27 Thread Akim Demaille
Adrian, > Le 27 juin 2020 à 13:39, Adrian a écrit : > > Hi Akim, > > It would be nice if it were possible to enable parse.assert without rtti, > but I understand if it's difficult/impossible and that it's a very > minor use case. > However, just for discussion, if I understood the docs bison's

Re: Bison 3.6 requires runtime type information?

2020-06-27 Thread Adrian
Hi Akim, Now that you mention it, I did add parse.assert at the same time I upgraded to 3.6. I had totally forgotten about that change. Removing parse.assert indeed makes it compile fine without rtti. So I guess that explains everything. It would be nice if it were possible to enable parse.assert

Re: Bison 3.6 requires runtime type information?

2020-06-27 Thread Akim Demaille
Hi Adrian, > Le 27 juin 2020 à 10:21, Adrian a écrit : > > Hi, > > The exact error message I'm getting is: > > In constructor 'Parser::semantic_type::semantic_type(T&&)’: > error: cannot use typeid with -fno-rtti So your skeleton is lalr1.cc (variants are not supported by glr.cc). > I'm just

Re: Bison 3.6 requires runtime type information?

2020-06-27 Thread Adrian
Hi, Thanks for the quick reply. My apologies for the lack of info in my original email; I assumed it was intended behaviour. The exact error message I'm getting is: In constructor 'Parser::semantic_type::semantic_type(T&&)’: error: cannot use typeid with -fno-rtti When I open the generated parse