Summary: | =app-mobilephone/freesmee-0.81 fails to compile with clang-3.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Vicente Olivert Riera (RETIRED) <vincent> |
Component: | Current packages | Assignee: | Agostino Sarubbo <ago> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 408963 | ||
Attachments: |
freesmee-0.81:20130217-134020.log
Use correct destructor |
Created attachment 351546 [details, diff]
Use correct destructor
clang is correct here (and probably stricter than gcc), LabelEsito is a QLabel object, but destroyed with a parent destructor (QWidget). Using the matching destructor makes it compile and run fine :)
thanks for the patch, sent upstream. + 21 Jun 2013; Agostino Sarubbo <ago@gentoo.org> +freesmee-0.83.ebuild, + -files/freesmee.desktop, -freesmee-0.81.ebuild: + Version bump to 0.83. It fixes bug #457966 |
Created attachment 339144 [details] freesmee-0.81:20130217-134020.log mainjacksms.cpp:123:22: error: destructor type 'QWidget' in object destruction expression does not match the type 'QLabel' of the object being destroyed ui->LabelEsito->~QWidget(); # clang --version clang version 3.2 (tags/RELEASE_32/final) Target: x86_64-pc-linux-gnu Thread model: posix # cat /etc/portage/env/clang CC=clang CXX=clang++ # cat /etc/portage/env/clang-lto CC='clang' CXX='clang++' CFLAGS="${CFLAGS} -O4" CXXFLAGS="${CXXFLAGS} -O4" LDFLAGS="${LDFLAGS} -O4 -Wl,-plugin,/usr/lib/llvm/LLVMgold.so" AR='/usr/local/bin/clang-ar' RANLIB=':' NM='nm --plugin /usr/lib64/llvm/LLVMgold.so'