Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 457966

Summary: =app-mobilephone/freesmee-0.81 fails to compile with clang-3.2
Product: Gentoo Linux Reporter: Vicente Olivert Riera (RETIRED) <vincent>
Component: Current packagesAssignee: 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

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