Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.3
-
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