http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54521
--- Comment #2 from Nikolka <tsoae at mail dot ru> 2012-09-08 12:36:29 UTC --- (In reply to comment #1) > Works fine with 4.6.3, 4.7.2 20120716 (prerelease) and > 4.8.0 20120716 (experimental) > > As requested when submitting the bug, please provide the information requested > at http://gcc.gnu.org/bugs/ including the command line and output of gcc -v 1) Version info: Target: i686-pc-mingw32 Configured with: ../src/configure --prefix=/c/temp/gcc/dest --with-gmp=/c/temp/gcc/gmp --with-mpfr=/c/temp/gcc/mpfr --with-mpc=/c/temp/gcc/mpc --enable-languages=c,c++ --with-arch=i686 --with-tune=generic --disable-libstdcxx-pch --disable-nls --disable-shared --disable-sjlj-exceptions --disable-win32-registry --enable-checking=release --enable-lto Thread model: win32 gcc version 4.7.1 (GCC) COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-mtune=generic' '-march=i686' c:/common/c++/mingw/mingw-gcc-4.7.1/bin/../libexec/gcc/i686-pc-mingw32/4.7.1/cc1plus.exe -quiet -v -iprefix ..\bin\../lib/gcc/i686-pc-mingw32/4.7.1/ test.cpp -quiet -dumpbase test.cpp -mtune=generic -march=i686 -auxbase test -std=c++11 -version -o GNU C++ (GCC) version 4.7.1 (i686-pc-mingw32) compiled by GNU C version 4.7.1, GMP version 5.0.5, MPFR version 3.1.0-p10, MPC version 0.9 Diagnostic message: test.cpp: In function 'int main()': test.cpp:9:15: error: no matching function for call to 'X::X(X)' test.cpp:9:15: note: candidate is: test.cpp:3:9: note: X::X(int) test.cpp:3:9: note: no known conversion for argument 1 from 'X' to 'int' 2) Version info: Target: i686-pc-linux-gnu Configured with: .../configure --prefix=.../target --enable-languages=c,c++ Thread model: posix gcc version 4.8.0 20120826 (experimental) (GCC) Diagnostic message: test.cpp: In function ‘int main()’: test.cpp:9:15: error: no matching function for call to ‘X::X(X)’ X x = 1; // error: no matching function for call to 'X::X(X)' ^ test.cpp:9:15: note: candidate is: test.cpp:3:9: note: X::X(int) X(int) {} ^ test.cpp:3:9: note: no known conversion for argument 1 from ‘X’ to ‘int’