ERC invalid connect errors depending on label placement location in a sheet [KNOWN BUG]

Recently experienced strange errrors never seen before. Pulled my out a few (white) hairs runnning the ERC trying to solve the last few error and after a lot of painstaking trial and error nailed it down to the location of the labels in the sub-sheet !

Scenario: A sub-sheet has hierarchical labels. The hierarchical labels have net labels with the same name in the same sheet (otherwise there is a warning that the different label use the same connections). The construction is as follows:

[1] Hierarchical label “A” ------ Net label “A” [2] Net label “A” ------- pin of an IC

When the [1] pair is placed close to the [2] pair no error occured. When it’s moved further away in the same sheet, the error “label does not connect to anything” is reported. Absolutely nothing else is changed, just the location of the hierarchical label pair in the same sheet. Am I missing something ? This would be worth a bug report ?

Pair [1]
image

Pair [2]

image

After moving pair [1] close to [2] ONLY, the errors disappear

image

Application: KiCad Schematic Editor

Version: 6.0.9-8da3e8f707~116~ubuntu22.04.1, release build
Libraries:
wxWidgets 3.0.5
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.13
Platform: Linux 5.15.0-52-lowlatency x86_64, 64 bit, Little endian, wxGTK, ubuntu-xorg, x11
Build Info:
Date: Oct 31 2022 20:14:12
wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.74.0
OCC: 7.5.2
Curl: 7.86.0
ngspice: 36
Compiler: GCC 11.3.0 with C++ ABI 1016
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON

A few people have run into this Error: Label does not connect to anything bug. and apparently it’s alread reported on gitlab. See the thread below.

Thanks, hopefully the added information that the location in the sheet seems to matter and above details gives some hints on the nature of the bug and that it’s not limited to buses.