http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50976
--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-11-03 12:05:06 UTC --- (In reply to comment #1) > Could it be that there is a 'template<char...>' just above the declaration? > Literal operator templates must have void argument. No, there is nothing like this nearby. I compiled the code as written with the flags -std=c++0x -Wall (with or without -pedantic), see attached test case. To give you more information, here the result of the complete "-v -save-temps -std=c++0x -Wall" compile step: Built by Equation Solution <http://www.Equation.com>. Using built-in specs. COLLECT_GCC=C:\Program Files\Develop\gcc\bin\gcc.exe COLLECT_LTO_WRAPPER=c:/program files/develop/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-4.7-20111029-mingw/configure --host=x86_64-w64-mingw32 --build=x86_64-unknown-linux-gnu --target=x86_64-w6 4-mingw32 --prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/gcc/4.7-20111029 --with-sysroot=/home/gfortran/gcc-home/bi nary/mingw32/cross/x86_64/gcc/4.7-20111029 --with-gcc --with-gnu-ld --with-gnu-as --with-gmp=/home/gfortran/gcc-home/binary/mingw3 2/native/x86_64/gmp --with-mpfr=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/mpfr --with-mpc=/home/gfortran/gcc-home/binar y/mingw32/native/x86_64/mpc --with-ppl=/home/gfortran/gcc-home/binary/mingw32/native/x86_64/ppl --with-cloog=/home/gfortran/gcc-ho me/binary/mingw32/native/x86_64/cloog --with-host-libstdcxx='-lstdc++ -lsupc++ -lm' --enable-targets=i686-w64-mingw32,x86_64-w64-m ingw32 --enable-cloog-backend=ppl --enable-lto --enable-languages=c,c++,fortran --enable-libgomp --enable-threads=win32 --enable-s tatic --enable-shared=lto-plugin --enable-plugins --enable-ld=yes --enable-libquadmath --enable-libquadmath-support --disable-nls --disable-tls --disable-win32-registry Thread model: win32 gcc version 4.7.0 20111029 (experimental) (GCC) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-Wall' '-mtune=generic' '-march=x86-64' c:/program files/develop/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.0/cc1plus.exe -E -quiet -v -iprefix c:\program files\devel op\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/ -U_REENTRANT main.cpp -mtune=generic -march=x86-64 -std=c++0x -Wall -fpch-preproce ss -o main.ii ignoring duplicate directory "c:/program files/develop/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include/c++/ 4.7.0" ignoring duplicate directory "c:/program files/develop/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include/c++/ 4.7.0/x86_64-w64-mingw32" ignoring duplicate directory "c:/program files/develop/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include/c++/ 4.7.0/backward" ignoring duplicate directory "c:/program files/develop/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.7.0/include" ignoring nonexistent directory "/home/gfortran/gcc-home/binary/mingw32/cross/x86_64/gcc/4.7-20111029/home/gfortran/gcc-home/binary /mingw32/native/x86_64/gcc/4.7-20111029/lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include" ignoring duplicate directory "c:/program files/develop/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.7.0/include-fixed" ignoring duplicate directory "c:/program files/develop/gcc/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-m ingw32/include" ignoring nonexistent directory "/home/gfortran/gcc-home/binary/mingw32/cross/x86_64/gcc/4.7-20111029/mingw/include" #include "..." search starts here: #include <...> search starts here: c:\program files\develop\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include/c++/4.7.0 c:\program files\develop\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include/c++/4.7.0/x86_64-w64-mingw32 c:\program files\develop\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../include/c++/4.7.0/backward c:\program files\develop\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/include c:\program files\develop\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/include-fixed c:\program files\develop\gcc\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-std=c++0x' '-Wall' '-mtune=generic' '-march=x86-64' c:/program files/develop/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.0/cc1plus.exe -fpreprocessed main.ii -quiet -dumpbase main .cpp -mtune=generic -march=x86-64 -auxbase main -Wall -std=c++0x -version -o main.s GNU C++ (GCC) version 4.7.0 20111029 (experimental) (x86_64-w64-mingw32) compiled by GNU C version 4.7.0 20111029 (experimental), GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.9 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C++ (GCC) version 4.7.0 20111029 (experimental) (x86_64-w64-mingw32) compiled by GNU C version 4.7.0 20111029 (experimental), GMP version 5.0.1, MPFR version 3.0.0, MPC version 0.9 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 709d110f6440eac9dcd57bc1d2fbf1ee main.cpp:1:44: error: 'int operator"" _abc(long long unsigned int)' has invalid argument list