LUMIERA.clone/tests/library/meta
Ichthyostega 47f5390b18 Upgrade: address warnings -- shaddowing overloaded-virtual
This is an advanced diagnostics added (presumably) with GCC-13
and attempts to protect against an insidious side-effect of ''overload resolution''

Basically C++ (like its ancestor C) is oriented towards direct linkage and adds
the OO-style dynamic dispatch (through virtual functions and a VTable)
only as an extension, which must be requested explicitly.

Thus the resolution of ''overloads'' (as opposed to ''overridden'' virtual functions)
always takes precedence and happens within the directly visible scope,
which can cause the compiler to perform an implicit conversion instead of
invoking a different virtual function, which is defined in a base class.

However, this diagnostics seems to be implemented in an overly zealous way:
The compiler warns at the time of the type instantiation, and even in cases
where it is effectively impossible to encounter this dangerous shadowing situation.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109740

This leads to several ill-guided warnings in the Lumiera code base, which unfortunately
can only be addressed by disabling this diagnostics for all usages of some header.
The reason is, we often generate chains of template instantiations driven by type lists,
and in such usage pattern, it is not even possible to bring all the other inherited overloads
into scope (with a using `BASE::func` clause), because such a specification would be ambiguous
and result in a real compile error, because even the interface is generated from a chain of mix-in templates
2025-04-15 22:42:34 +02:00
..
access-casted-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
config-flags-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
duck-detector-extension-test.cpp Library: shorten display of unsigned types 2024-11-22 22:02:45 +01:00
duck-detector-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
dummy-functions.hpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
function-closure-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
function-composition-test.cpp Invocation: generalise partial-closure cases 2025-02-17 21:18:37 +01:00
function-erasure-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
function-signature-test.cpp Library: shorten display of unsigned types 2024-11-22 22:02:45 +01:00
generator-combinations-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
generator-test.cpp Upgrade: address warnings -- shaddowing overloaded-virtual 2025-04-15 22:42:34 +02:00
iterable-classification-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
late-bind-instance-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
meta-utils-test.cpp Metaprogramming: detect structured types 2024-12-17 16:59:02 +01:00
tuple-closure-test.cpp Invocation: complete closure-helper and tests 2025-02-18 00:24:55 +01:00
tuple-diagnostics.hpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
tuple-helper-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
tuple-record-init-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
type-demangling-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
type-display-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
typelist-diagnostics.hpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
typelist-manip-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
typelist-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
typelist-util-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
typeseq-manip-test.cpp Invocation: implementation for the chain-constructor 2024-12-10 18:49:06 +01:00
value-type-binding-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
variadic-argument-picker-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
variadic-helper-test.cpp Invocation: pave a way for more generic processing via ''type-sequence'' 2024-12-18 05:55:00 +01:00
virtual-copy-support-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00