gul-cpp / gul14

General Utility Library for C++14
https://gul14.info/
GNU Lesser General Public License v2.1
2 stars 1 forks source link

Compiler warning with SmallVector test #91

Closed Finii closed 4 months ago

Finii commented 4 months ago

Just dumping this here to not forget

image

alt-graph commented 4 months ago

Hmmm... I quickly debugged through the test, and it only calls delete [] on memory that came from new []. So there seems to be no obvious smoking gun here, but maybe this needs a little more investigation.

Finii commented 4 months ago

Hmm, very strange, I can (reliably) trigger this warning if libgul is built and tested as subproject, but when I change directly into the subproject directory and set the build there up identical, the issue is not surfacing :thinking:
Well, and it only happens if coverage is to be generated.

$ cd clientlib
$ meson setup build_gcov3 -Db_coverage=true --wrap=forcefallback --wipe -Dtine=disabled
$ ninja -C build_gcov3 test