]> git.saurik.com Git - bison.git/blobdiff - data/lalr1.cc
* NEWS: Instead of %union, you can define and use your own union type
[bison.git] / data / lalr1.cc
index 87b64fa17a2ed9f2aeae36806bff1ef7a95881d9..000cd0d1efee39aa44cde10fbddbfd889ae58ccb 100644 (file)
@@ -110,7 +110,9 @@ namespace ]b4_namespace[
 [    union semantic_type
 b4_user_stype
        ;],
-[    typedef int semantic_type;])[
+[m4_if(b4_tag_seen_flag, 0,
+[[    typedef int semantic_type;]],
+[[    typedef YYSTYPE semantic_type;]])])[
 #else
     typedef YYSTYPE semantic_type;
 #endif