mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
c++: beware of Visual C++ limitations
Contrary to what commit d8cc6b073e "c++:
shorten the assertions that check whether tokens are correct"
believed, MS Visual C++'s preprocessor limitation is not on the input
line length, but on the size of the line holding the full C++
statement.
Reported by Vince Huffaker <vince@vincejulie.com>
<https://lists.gnu.org/r/help-bison/2021-08/msg00003.html>
* data/skeletons/variant.hh (_b4_symbol_constructor_define): Hide the
assertion from Visual C++.
This commit is contained in:
1
NEWS
1
NEWS
@@ -2,6 +2,7 @@ GNU Bison NEWS
|
|||||||
|
|
||||||
* Noteworthy changes in release ?.? (????-??-??) [?]
|
* Noteworthy changes in release ?.? (????-??-??) [?]
|
||||||
|
|
||||||
|
Portability issues in the test suite and in C++ skeletons.
|
||||||
|
|
||||||
* Noteworthy changes in release 3.7.90 (2021-08-13) [beta]
|
* Noteworthy changes in release 3.7.90 (2021-08-13) [beta]
|
||||||
|
|
||||||
|
|||||||
@@ -484,7 +484,9 @@ m4_define([_b4_symbol_constructor_define],
|
|||||||
b4_locations_if([l]))[)
|
b4_locations_if([l]))[)
|
||||||
#endif
|
#endif
|
||||||
{]b4_parse_assert_if([[
|
{]b4_parse_assert_if([[
|
||||||
|
#if !defined _MSC_VER || defined __clang__
|
||||||
]b4_assert[ (]b4_tok_in($@)[);
|
]b4_assert[ (]b4_tok_in($@)[);
|
||||||
|
#endif
|
||||||
]])[}
|
]])[}
|
||||||
]])])
|
]])])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user