mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
c++: api.token.constructor requires api.value.type=variant
Eventually it should also support "union". * data/glr.cc: Move this check to... * data/c++.m4: here, as lalr1.cc is affected too.
This commit is contained in:
10
data/c++.m4
10
data/c++.m4
@@ -520,3 +520,13 @@ m4_define([b4_yylloc_default_define],
|
|||||||
while (/*CONSTCOND*/ false)
|
while (/*CONSTCOND*/ false)
|
||||||
# endif
|
# endif
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
## -------- ##
|
||||||
|
## Checks. ##
|
||||||
|
## -------- ##
|
||||||
|
|
||||||
|
b4_token_ctor_if([b4_variant_if([],
|
||||||
|
[b4_fatal_at(b4_percent_define_get_loc(api.token.constructor),
|
||||||
|
[cannot use '%s' without '%s'],
|
||||||
|
[%define api.token.constructor],
|
||||||
|
[%define api.value.type variant]))])])
|
||||||
|
|||||||
@@ -43,12 +43,6 @@
|
|||||||
# user must initialize the first positions (in particular the
|
# user must initialize the first positions (in particular the
|
||||||
# filename member).
|
# filename member).
|
||||||
|
|
||||||
b4_token_ctor_if([b4_variant_if([],
|
|
||||||
[b4_fatal_at(b4_percent_define_get_loc(api.token.constructor),
|
|
||||||
[cannot use '%s' without '%s'],
|
|
||||||
[%define api.token.constructor],
|
|
||||||
[%define api.value.type variant]))])])
|
|
||||||
|
|
||||||
# We require a pure interface.
|
# We require a pure interface.
|
||||||
m4_define([b4_pure_flag], [1])
|
m4_define([b4_pure_flag], [1])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user