shape/directive/the same tag handle declared twice

sha256 fa01fdd319c64c53f3298f6e933d7b095e1e7ec565dfddec3f8d166c32263cf1

Document

%TAG !e! tag:a,2011:
%TAG !e! tag:b,2011:
---
a: 1

Corpus

grammarvalid, vouched for up to construct
directive/multipleaccept from compose on, 6.8: nothing limits a document to one directive, and a %YAML with a %TAG is the ordinary prelude
directive/tag-handle-repeatedreject from compose on, 6.8.2.2: it is an error to specify more than one TAG directive for the same handle in the same document
featuresnone
meaning (none stated)

Answer groups

verdict split

go-yaml libfyaml yaml.v3

refuse by the parser

perlref yamlstar

accept

value

yamlstar

{"a":1}

roundtrip

No source answered.

Each parser

parserverdictvalueround tripreasonmessage
perlref accepted accept n/i n/i
libfyaml rejected, settled refuse by the parser not scored n/i directive/tag-handle-repeated: 6.8.2.2: it is an error to specify more than one TAG directive for the same handle in the same document. The parser checks this compose rule at parse stdin:2:6: error: duplicate tag directive
yamlstar accepted, against the rules accept not scored n/i directive/tag-handle-repeated: 6.8.2.2: it is an error to specify more than one TAG directive for the same handle in the same document
yaml.v3 rejected, settled refuse by the parser not scored refused directive/tag-handle-repeated: 6.8.2.2: it is an error to specify more than one TAG directive for the same handle in the same document yaml.v3: yaml: line 1: found duplicate %TAG directive
go-yaml rejected, settled refuse by the parser not scored refused directive/tag-handle-repeated: 6.8.2.2: it is an error to specify more than one TAG directive for the same handle in the same document [2:6] tag handle !e! has already been declared by a TAG directive

Corpus compact, 28279 cases, yamlcorpus/48. Run 2026-11-26 22:12 UTC, 23m30s.