Closed donmac703 closed 3 years ago
lookahead(), token(), and location() should be tagged with YY_NOEXCEPT.
Fixed in master.
lalr1.cc contains the following code fragment:
class context { public: context (const ]b4_parser_class[& yyparser, const symbol_type& yyla); const symboltype& lookahead () const { return yyla; } symbol_kindtype token () const { return yyla.kind (); }]b4_locations_if([[ const locationtype& location () const { return yyla.location; }
lookahead(), token(), and location() should be tagged with YY_NOEXCEPT.
Note that kind() is already tagged with YY_NOEXCEPT as shown below.
/// The symbol kind (corresponding to \a state). /// \a ]b4_symbol(-2, kind)[ when empty. symbol_kind_type kind () const YY_NOEXCEPT;