public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mattyclarkson at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/54466] New: Recursive Type Alias, Member Function Pointer, Segmentation Fault Date: Mon, 03 Sep 2012 11:07:00 -0000 [thread overview] Message-ID: <bug-54466-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54466 Bug #: 54466 Summary: Recursive Type Alias, Member Function Pointer, Segmentation Fault Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: mattyclarkson@gmail.com Created attachment 28122 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28122 The preprocessed dump from the error. The following code fails with a segmentation fault: #include <memory> template<typename T> using CallbackPtr = const std::shared_ptr<const T>; template<typename C, typename T> using CallbackFunPtr = void (C::*)(CallbackPtr<T>); int main () { return 0; } [matt test] g++ --std=c++11 -Wall -Wextra -Werror -pedantic -pedantic-errors main.cpp main.cpp:7:49: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccuw4zjD.out file, please attach this to your bugreport. However changing CallbackFunPtr to: template<typename C, typename T> using CallbackFunPtr = void (C::*)(const std::shared_ptr<const T>); It's OK. [matt test] uname -r 3.5.2-3.fc17.x86_64 [matt test] gcc --version gcc (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) Copyright (C) 2012 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.
next reply other threads:[~2012-09-03 11:07 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-09-03 11:07 mattyclarkson at gmail dot com [this message] 2012-10-16 15:47 ` [Bug c++/54466] " mattyclarkson at gmail dot com 2012-10-16 15:56 ` [Bug c++/54466] [C++11] " redi at gcc dot gnu.org 2012-10-16 22:32 ` paolo.carlini at oracle dot com 2012-10-16 23:09 ` redi at gcc dot gnu.org 2012-10-16 23:13 ` paolo.carlini at oracle dot com 2012-10-16 23:17 ` redi at gcc dot gnu.org 2012-10-17 8:19 ` mattyclarkson at gmail dot com 2012-10-26 15:11 ` dodji at gcc dot gnu.org 2012-10-26 15:13 ` dodji at seketeli dot org 2012-10-27 7:59 ` dodji at seketeli dot org 2012-11-13 16:08 ` dodji at gcc dot gnu.org 2012-11-13 16:09 ` dodji at gcc dot gnu.org 2012-11-14 14:24 ` mattyclarkson at gmail dot com 2012-11-14 14:29 ` redi at gcc dot gnu.org 2012-11-15 13:52 ` dodji at seketeli dot org 2012-12-05 13:05 ` paolo.carlini at oracle dot com 2013-05-03 9:06 ` paolo.carlini at oracle dot com
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-54466-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).