Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 4.8.3
-
Fix Version/s: 5.0.0
-
Component/s: Build tools: moc
-
Labels:None
Description
#include <QObject> namespace Something //__attribute__ ((__visibility__ (default))) { } class MyClass : public QObject { Q_OBJECT };
Uncommenting the attribute makes moc fail:
stephen@hal:/tmp$ moc bad.h
bad.h:4: Parse error at "Something"
Apparently GCC headers now add such attributes to the std namespace, eg /usr/include/c++/4.6/bits/stl_relops.h. This causes build errors for KDE phonon: http://build.kde.org/job/phonon_master/lastBuild/console