From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27013 invoked by alias); 13 Oct 2015 09:35:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26958 invoked by uid 48); 13 Oct 2015 09:35:21 -0000 From: "niqingliang2003 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67935] internal compiler error: Segmentation fault Date: Tue, 13 Oct 2015 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: niqingliang2003 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00963.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67935 Yi Qingliang changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #36484|0 |1 is obsolete| | CC| |niqingliang2003 at gmail d= ot com --- Comment #2 from Yi Qingliang --- Created attachment 36492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D36492&action=3Dedit the array version the array version compile result: $ gcc -v -save-temps -std=3Dc++11 main.cpp=20 Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/lto-wrapp= er Target: x86_64-unknown-linux-gnu Configured with: /build/gcc/src/gcc-5.2.0/configure --prefix=3D/usr --libdir=3D/usr/lib --libexecdir=3D/usr/lib --mandir=3D/usr/share/man --infodir=3D/usr/share/info --with-bugurl=3Dhttps://bugs.archlinux.org/ --enable-languages=3Dc,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=3Dposix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=3Dgnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=3Dgnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=3Drelease --with-default-libstdcxx-abi=3Dgcc4-compatible Thread model: posix gcc version 5.2.0 (GCC)=20 COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dc++11' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/cc1plus -E -quiet -v -D_GNU_SO= URCE main.cpp -mtune=3Dgeneric -march=3Dx86-64 -std=3Dc++11 -fpch-preprocess -o = main.ii ignoring nonexistent directory "/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../x86_64-unknown-lin= ux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0 /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/x= 86_64-unknown-linux-gnu /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/../../../../include/c++/5.2.0/b= ackward /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include /usr/local/include /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/include-fixed /usr/include End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-std=3Dc++11' '-mtune=3Dgeneric' '-march=3Dx86-64' /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/cc1plus -fpreprocessed main.ii -quiet -dumpbase main.cpp -mtune=3Dgeneric -march=3Dx86-64 -auxbase main -s= td=3Dc++11 -version -o main.s GNU C++11 (GCC) version 5.2.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C++11 (GCC) version 5.2.0 (x86_64-unknown-linux-gnu) compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version 3.1.3-p4, MPC version 1.0.3 GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: 9ed1d81099b98de89457560501a9ea0c main.cpp: In substitution of =E2=80=98template void base_t::seria= lize(_T&) [with _T =3D packer_rp]=E2=80=99: main.cpp:16:3: required from =E2=80=98void packer_rp::pack_data(const _T&= ) [with _T =3D base_t]=E2=80=99 main.cpp:6:3: required from =E2=80=98void packer_rp::operator()(const _T&= ) [with _T =3D base_t]=E2=80=99 main.cpp:45:3: required from =E2=80=98void test::serialize(_T&) const [wi= th _T =3D packer_rp]=E2=80=99 main.cpp:53:30: required from here main.cpp:34:22: error: invalid use of =E2=80=98restrict=E2=80=99 void serialize(_T & o) >>From gcc-bugs-return-499411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 13 09:36:38 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29845 invoked by alias); 13 Oct 2015 09:36:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29475 invoked by uid 48); 13 Oct 2015 09:36:34 -0000 From: "niqingliang2003 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67935] internal compiler error: Segmentation fault Date: Tue, 13 Oct 2015 09:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: niqingliang2003 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-10/txt/msg00966.txt.bz2 Content-length: 298 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67935 --- Comment #3 from Yi Qingliang --- Created attachment 36493 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36493&action=edit the array version 'save-temps' result the array version 'save-temps' result