From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14052 invoked by alias); 14 Dec 2010 22:01:00 -0000 Received: (qmail 13995 invoked by uid 22791); 14 Dec 2010 22:00:53 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Dec 2010 22:00:47 +0000 From: "cacoyi at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46947] New: Segmentation Fault compiling templates with function pointers 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: major X-Bugzilla-Who: cacoyi at gmail 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 Date: Tue, 14 Dec 2010 22:01:00 -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 X-SW-Source: 2010-12/txt/msg01652.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D46947 Summary: Segmentation Fault compiling templates with function pointers Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: cacoyi@gmail.com Created attachment 22756 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D22756 Files needed to reproduce and report the bug. When the source in the attached archive is compiled with: g++ -save-temps main.cpp the output is: main.cpp: In member function =E2=80=98FTemplate<_Binary > FTemplate::operator|(const FTemplate&) const [with int (* FuncB)() =3D _Nullary, int (* FuncA)() =3D _Nullary]=E2=80=99: main.cpp:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Admittedly this problem might be Apple specific, but it is probably worth checking, as I understand it is the same code base and I'm not sure how forthcoming Apple is with bugs. g++ -v: Using built-in specs. Target: i686-apple-darwin10 Configured with: /var/tmp/gcc/gcc-5664~105/src/configure --disable-chec= king --enable-werror --prefix=3D/usr --mandir=3D/share/man --enable-languages=3Dc,objc,c++,obj-c++ --program-transform-name=3D/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=3D/usr/lib --build=3Di686-apple-darwin10 --program-prefix=3Di686-apple-darwin10- --host=3Dx86_64-apple-darwin10 --target=3Di686-apple-darwin10 --with-gxx-include-dir=3D/include/c++/4.= 2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5664)