public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cacoyi at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46947] New: Segmentation Fault compiling templates with function pointers Date: Tue, 14 Dec 2010 22:01:00 -0000 [thread overview] Message-ID: <bug-46947-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46947 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=22756 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 ‘FTemplate<_Binary<FuncA, FuncB> > FTemplate<FuncA>::operator|(const FTemplate<FuncB>&) const [with int (* FuncB)() = _Nullary, int (* FuncA)() = _Nullary]’: main.cpp:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> 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-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Apple Inc. build 5664)
next reply other threads:[~2010-12-14 22:01 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-14 22:01 cacoyi at gmail dot com [this message] 2010-12-14 22:18 ` [Bug c++/46947] " redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-46947-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).