From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30758 invoked by alias); 19 Feb 2013 22:13:25 -0000 Received: (qmail 30522 invoked by uid 48); 19 Feb 2013 22:13:06 -0000 From: "aseering at vertica dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56403] New: internal compiler error: in build_zero_init_1, at cp/init.c:279 Date: Tue, 19 Feb 2013 22:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aseering at vertica dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2013-02/txt/msg02005.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56403 Bug #: 56403 Summary: internal compiler error: in build_zero_init_1, at cp/init.c:279 Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: aseering@vertica.com Created attachment 29504 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D29504 Preprocessed output from the source files that reproduce this bug (I'm re-filing this bug per suggestion from the downstream Ubuntu bug track= er: Upon furt= her investigation, the bug doesn't appear to be Ubuntu-specific.) I've hit this bug on several g++ versions, but am primarily running 4.6.3 as bundled with Ubuntu 12.04, on a relatively stock system: $ gcc -v Using built-in specs. COLLECT_GCC=3D/usr/bin/gcc COLLECT_LTO_WRAPPER=3D/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=3Dc,c++,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=3D/usr/lib --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.6 --libdir=3D/usr/lib --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-debug --enable-libstdcxx-time=3Dyes --enable-gnu-unique-= object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=3Di686 --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)=20 $ g++ --version g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ apt-cache policy g++-4.6 g++-4.6: Installed: 4.6.3-1ubuntu5 Candidate: 4.6.3-1ubuntu5 Version table: *** 4.6.3-1ubuntu5 0 500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages 100 /var/lib/dpkg/status $ lsb_release -rd Description: Ubuntu 12.04.1 LTS Release: 12.04 I'm trying to compile a particular source file. When I compile it as follow= s, I get the following error: $ g++ -I ../include -I HelperLibraries -g -Wall -Wno-unused-value -shared -= fPIC -o build/BasicIntegerParser_continuous.so ParserFunctions/BasicIntegerParser_continuous.cpp ../include/Vertica.cpp ParserFunctions/BasicIntegerParser_continuous.cpp: In member function =E2= =80=98virtual Vertica::UDParser* BasicIntegerParserFactory::prepare(Vertica::ServerInterface&, Vertica::PerColumnParamReader&, Vertica::PlanContext&, const Vertica::SizedColumnTypes&)=E2=80=99: ParserFunctions/BasicIntegerParser_continuous.cpp:76:16: internal compiler error: in build_zero_init_1, at cp/init.c:279 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/cc8HZt1y.out file, please attach this = to your bugreport. I expected the file to compile properly, or at least provide an error messa= ge describing a fault in my code rather than in the compiler. I have attached the preprocessed source file as requested by the error mess= age. The error reproduces for me on g++ 4.4.5 (installed on top of Red Hat Enterprise Linux -- hence concluding no Ubuntu dependency). Others have reproduced this with both vanilla and Ubuntu-packaged g++ 4.7.2. The bug does NOT reproduce for me on g++ 4.1.2; the above code compiles and runs as I would expect: $ gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --enable-checking=3Drelease --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=3Dc,c++,objc,obj-c++,java,fortran,ada --enable-java-awt= =3Dgtk --disable-dssi --disable-plugin --with-java-home=3D/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=3Dgen= eric --host=3Dx86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-52) The code also compiles and runs as I would expect under clang 3.0. (I susp= ect that's not too useful for debugging, but, just in case / to be thorough.) Please let me know if I can help out in debugging or fixing.