bison: allow trivially copyable C++ YYLTYPE

Problem reported by James K. Lowden in:
https://lists.gnu.org/r/bison-patches/2026-07/msg00000.html
* data/skeletons/yacc.c: In C++, check that YYLTYPE is
trivially copyable if this is not already known.
But skip the check in older compilers.
This commit is contained in:
Paul Eggert
2026-07-21 12:52:53 -07:00
parent 3841fe9de4
commit 089c39aab2
2 changed files with 24 additions and 4 deletions
+3
View File
@@ -8,6 +8,9 @@ GNU Bison NEWS
The C++ skeletons now expose copy and move operators for symbols.
The default (C) skeleton now supports user-defined semantic and location
types that are trivially copyable in C++.
Fixed portability issues of the test suite on Solaris.
Fixed spurious warnings about input containing `m4_` or `b4_`.