Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457966 - =app-mobilephone/freesmee-0.81 fails to compile with clang-3.2
Summary: =app-mobilephone/freesmee-0.81 fails to compile with clang-3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Agostino Sarubbo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2013-02-17 13:47 UTC by Vicente Olivert Riera (RETIRED)
Modified: 2013-06-21 18:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
freesmee-0.81:20130217-134020.log (file_457966.txt,20.15 KB, text/plain)
2013-02-17 13:47 UTC, Vicente Olivert Riera (RETIRED)
Details
Use correct destructor (freesmee-0.81-clang.patch,491 bytes, patch)
2013-06-21 12:25 UTC, Bernard Cafarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vicente Olivert Riera (RETIRED) gentoo-dev 2013-02-17 13:47:50 UTC
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'
Comment 1 Bernard Cafarelli gentoo-dev 2013-06-21 12:25:30 UTC
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 :)
Comment 2 Agostino Sarubbo gentoo-dev 2013-06-21 18:46:37 UTC
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