From 2633a5ec3b1d8423b913e2d1868dfc445897d93d Mon Sep 17 00:00:00 2001 From: zinc Date: Wed, 14 Oct 2026 15:57:41 +0330 Subject: switch: case member(): with no names matches a tagged member by tag even when it has fields (spec 4.7.3) --- tests/conformance/known.txt | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/conformance/known.txt') diff --git a/tests/conformance/known.txt b/tests/conformance/known.txt index 0540721..fdcb7af 100644 --- a/tests/conformance/known.txt +++ b/tests/conformance/known.txt @@ -1,7 +1,6 @@ # understood conformance failures: PATH IMPL CLASS reason # class a: self-hosted compiler bug; b: zc0 deviation (appendix a/b); c: spec issue to settle 4-statements/o3_outside_function_ordinary_block.zc zy c top-level o3 { } is rejected; spec 4.10.2 says it is an ordinary block -4-statements/switch_tagged_match_by_tag.zc zy a case member(): on a member with fields is rejected (a case binds every field); spec 4.7.3 says it matches by tag 5-declarations/enum_member_names_earlier_b2.zc zy a appendix b.2.2 confirmed: enum members can't name earlier members 5-declarations/fn_prototype_after_definition_b4.zc zy a appendix b.2.4 confirmed: a prototype after the definition hides it 5-declarations/fn_prototype_unnamed_params_b13.zc zy a appendix b.2.13 confirmed (message now: doesn't match its earlier declaration) -- cgit v1.2.3