8 Feb
2021
8 Feb
'21
12:34 p.m.
Alexey, On 08.02.21 11:10, Alexey Sheplyakov wrote:
I think it's implementation defined. The definition of lst::info() is available in lst.cpp only, and nothing in that translation unit uses lst::info(). Therefore the compiler is not obliged to instantiate lst::info() (although it's OK to do so). gcc and clang seem to instantiate it, but msvc needs the explicit instantiation (or something which triggers the implicit instantiation, like `dummy_func` in exprseq.cpp)
If we just provided an inlined definition lst::info() in lst.h, all compilers should be happy, right? -richy. -- Richard B. Kreckel <https://in.terlu.de/~kreckel/>