With gcc-4.8 4.8.0-8ubuntu1
[ 3%] Building CXX object libs/db/CMakeFiles/calligradb.dir/relationship.cpp.o
cd /«PKGBUILDDIR»/obj-x86_64-linux-gnu/libs/db && /usr/bin/c++ -DCAN_USE_MARBLE -DCAN_USE_QTWEBKIT -DDISABLE_NE
POMUK_LEGACY -DHAVE_SETMARBLEWIDGET -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=22 -DKDE_DEFAULT_DEBUG_AREA=44000 -DKDE_DEPR
ECATED_WARNINGS -DMAKE_CALLIGRADB_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_STL -DSHOULD_BUILD_RDF -DYYERROR_VERBOSE=1 -D
_BSD_SOURCE -D_REENTRANT -D_XOPEN_SOURCE=500 -D__KEXIDB__="" -g -O2 -fstack-protector --param=ssp-buffer-size=4 -
Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wcha
r-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-co
mmon -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -Werror=return-type -fvisibility-inlines-hi
dden -DNDEBUG -DQT_NO_DEBUG -fPIC -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu/libs/db -I/«PKGBUILDDIR»/libs/db -I/«PKGB
UILDDIR» -I/«PKGBUILDDIR»/obj-x86_64-linux-gnu -I/«PKGBUILDDIR»/interfaces -I/«PKGBUILDDIR»/libs -I/«PKGBUILDDIR»
/libs/db/parser -I/usr/include/KDE -I/usr/include/qt4/phonon -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/
QtXml -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg
-I/usr/include/qt4/QtSql -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtOpenG
L -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDecla
rative -I/usr/include/qt4/QtDBus -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore
-I/usr/include/qt4/Qt -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE
-o CMakeFiles/calligradb.dir/relationship.cpp.o -c /«PKGBUILDDIR»/libs/db/relationship.cpp
make[3]: *** [libs/pigment/KoOptimizedCompositeOpFactoryPerArch_SSE2.cpp.o] Error 1
/usr/bin/cmake -E cmake_progress_report /«PKGBUILDDIR»/obj-x86_64-linux-gnu/CMakeFiles
In file included from /«PKGBUILDDIR»/libs/pigment/compositeops/KoCompositeOpBase.h:24:0,
from /«PKGBUILDDIR»/libs/pigment/compositeops/KoOptimizedCompositeOpAlphaDarken32.h:24,
from /«PKGBUILDDIR»/libs/pigment/compositeops/KoOptimizedCompositeOpFactoryPerArch.cpp:23:
/«PKGBUILDDIR»/libs/pigment/compositeops/KoCompositeOpFunctions.h: In function 'T cfDivide(T, T)':
/«PKGBUILDDIR»/libs/pigment/compositeops/KoCompositeOpFunctions.h:155:64: warning: typedef 'composite_type' local
ly defined but not used [-Wunused-local-typedefs]
typedef typename KoColorSpaceMathsTraits<T>::compositetype composite_type;
^
In file included from /«PKGBUILDDIR»/libs/pigment/compositeops/KoOptimizedCompositeOpAlphaDarken32.h:26:0,
from /«PKGBUILDDIR»/libs/pigment/compositeops/KoOptimizedCompositeOpFactoryPerArch.cpp:23:
/«PKGBUILDDIR»/libs/pigment/compositeops/KoStreamedMath.h: In static member function 'static void KoStreamedMath<
_impl>::write_channels_32(quint8*, AsArg, AsArg, AsArg, AsArg)':
/«PKGBUILDDIR»/libs/pigment/compositeops/KoStreamedMath.h:172:48: error: invalid qualifiers on non-member functio
n type
Vc::uint_v v2 = (Vc::uint_v(Vc::int_v(c1)) & mask) << 16;
^
/«PKGBUILDDIR»/libs/pigment/compositeops/KoStreamedMath.h:172:48: error: invalid qualifiers on non-member functio
n type
/«PKGBUILDDIR»/libs/pigment/compositeops/KoStreamedMath.h:173:48: error: invalid qualifiers on non-member functio
n type
Vc::uint_v v3 = (Vc::uint_v(Vc::int_v(c2)) & mask) << 8;
^
/«PKGBUILDDIR»/libs/pigment/compositeops/KoStreamedMath.h:173:48: error: invalid qualifiers on non-member functio
n type
This could be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57279. Retry with a new gcc-snapshot when available.
The following code is rejected if compiled with gcc 4.9.0 20130505 (experimental) using the flags
-std=c++11 -Wall -pedantic-errors
//----- ------- ------- ------- ------- --- ------- ------- ------- ------- ---
typedef void fc1() const; // OK
typedef void frr1() &&; // OK
typedef void fcr1() const &;
using fc2 = void() const; // #4
using frr2 = void() &&; // OK
using fcr2 = void() const &; // #6
//-----
"main.cpp|4|error: invalid qualifiers on non-member function type|
main.cpp|6|error: invalid qualifiers on non-member function type|"
According to 8.3.5 [dcl.fct] p6 function type declarations with cv-qualifiers are valid via alias-declarations (b3).