https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68732
Bug ID: 68732 Summary: Internal error while compiling CLRadeonExtender Product: gcc Version: 5.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: matszpk at interia dot pl Target Milestone: --- Hi. I tried to compile my project with GCC 5.2.1 that provided by distro OpenSUSE Leap 42.1, and I that version of a compiler reports an internal error: Full command line: /usr/bin/g++-5 -v -save-temps -DCLRXWrapper_EXPORTS -Wall -std=gnu++11 -Wall -std=gnu++11 -O2 -fomit-frame-pointer -fPIC -I/home/mat/docs/dev/opencl/CLRadeonExtender -I/home/mat/docs/dev/opencl/CLRadeonExtender/build-gcc5 -D__CLRXWRAPPER__=1 -o CMakeFiles/CLRXWrapper.dir/CLInternals.cpp.o -c /home/mat/docs/dev/opencl/CLRadeonExtender/clwrapper/CLInternals.cpp -------------------------- Verbose output: -------------------------- Using built-in specs. COLLECT_GCC=/usr/bin/g++-5 Target: x86_64-suse-linux Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,fortran,ada,go --enable-checking=release --with-gxx-include-dir=/usr/include/c++/5 --enable-ssp --disable-libssp --disable-libvtv --enable-libmpx --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --with-default-libstdcxx-abi=gcc4-compatible --enable-version-specific-runtime-libs --enable-linker-build-id --enable-linux-futex --program-suffix=-5 --without-system-libunwind --enable-multilib --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux Thread model: posix gcc version 5.2.1 20150721 [gcc-5-branch revision 226027] (SUSE Linux) COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'CLRXWrapper_EXPORTS' '-std=gnu++11' '-Wall' '-std=gnu++11' '-O2' '-fomit-frame-pointer' '-fPIC' '-I' '/home/mat/docs/dev/opencl/CLRadeonExtender' '-I' '/home/mat/docs/dev/opencl/CLRadeonExtender/build-gcc5' '-D' '__CLRXWRAPPER__=1' '-o' 'CMakeFiles/CLRXWrapper.dir/CLInternals.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-suse-linux/5/cc1plus -E -quiet -v -I /home/mat/docs/dev/opencl/CLRadeonExtender -I /home/mat/docs/dev/opencl/CLRadeonExtender/build-gcc5 -D_GNU_SOURCE -D CLRXWrapper_EXPORTS -D __CLRXWRAPPER__=1 /home/mat/docs/dev/opencl/CLRadeonExtender/clwrapper/CLInternals.cpp -mtune=generic -march=x86-64 -std=gnu++11 -std=gnu++11 -Wall -fomit-frame-pointer -fPIC -O2 -fpch-preprocess -o CLInternals.ii #include "..." search starts here: #include <...> search starts here: /home/mat/docs/dev/opencl/CLRadeonExtender /home/mat/docs/dev/opencl/CLRadeonExtender/build-gcc5 /usr/include/c++/5 /usr/include/c++/5/x86_64-suse-linux /usr/include/c++/5/backward /usr/lib64/gcc/x86_64-suse-linux/5/include /usr/local/include /usr/lib64/gcc/x86_64-suse-linux/5/include-fixed /usr/lib64/gcc/x86_64-suse-linux/5/../../../../x86_64-suse-linux/include /usr/include End of search list. COLLECT_GCC_OPTIONS='-v' '-save-temps' '-D' 'CLRXWrapper_EXPORTS' '-std=gnu++11' '-Wall' '-std=gnu++11' '-O2' '-fomit-frame-pointer' '-fPIC' '-I' '/home/mat/docs/dev/opencl/CLRadeonExtender' '-I' '/home/mat/docs/dev/opencl/CLRadeonExtender/build-gcc5' '-D' '__CLRXWRAPPER__=1' '-o' 'CMakeFiles/CLRXWrapper.dir/CLInternals.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /usr/lib64/gcc/x86_64-suse-linux/5/cc1plus -fpreprocessed CLInternals.ii -quiet -dumpbase CLInternals.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/CLRXWrapper.dir/CLInternals.cpp.o -O2 -Wall -std=gnu++11 -std=gnu++11 -version -fomit-frame-pointer -fPIC -o CLInternals.s GNU C++11 (SUSE Linux) version 5.2.1 20150721 [gcc-5-branch revision 226027] (x86_64-suse-linux) compiled by GNU C version 5.2.1 20150721 [gcc-5-branch revision 226027], GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU C++11 (SUSE Linux) version 5.2.1 20150721 [gcc-5-branch revision 226027] (x86_64-suse-linux) compiled by GNU C version 5.2.1 20150721 [gcc-5-branch revision 226027], GMP version 5.1.3, MPFR version 3.1.2, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 3fcfa8b27ead87ef23b9e31292d57b7c -------------------- Warnings and errors: -------------------- /home/mat/docs/dev/opencl/CLRadeonExtender/clwrapper/CLInternals.cpp: In function ‘cl_int clrxCompilerCall(CLRXProgram*, const char*, cl_uint, CLRXDevice* const*)’: /home/mat/docs/dev/opencl/CLRadeonExtender/clwrapper/CLInternals.cpp:1707:33: internal compiler error: in strip_typedefs, at cp/tree.c:1369 std::unique_ptr<cl_int[]> binaryStatuses(new cl_int[compiledNum]); ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions. ------------------ Preprocessed file is in attachment.