diff --git a/examples/variant-11.yy b/examples/variant-11.yy
index c7fd66f9..b4281722 100644
--- a/examples/variant-11.yy
+++ b/examples/variant-11.yy
@@ -15,6 +15,7 @@
along with this program. If not, see .
*/
+%require "3.2"
%debug
%language "c++"
%define api.token.constructor
diff --git a/examples/variant.yy b/examples/variant.yy
index 6df428da..b440fa6b 100644
--- a/examples/variant.yy
+++ b/examples/variant.yy
@@ -15,6 +15,7 @@
along with this program. If not, see .
*/
+%require "3.2"
%debug
%language "c++"
%define api.token.constructor