public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "sebor at roguewave dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/36797] New: ICE on SFINAE and __is_empty Date: Thu, 10 Jul 2008 21:27:00 -0000 [thread overview] Message-ID: <bug-36797-1186@http.gcc.gnu.org/bugzilla/> (raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1009 bytes --] gcc 4.3.0 crashes compiling the program below: $ cat z.C && g++ z.C template <int> struct A { }; template <class, bool> struct B; template <class T> struct B<T, true> { typedef T X; }; template <class T> int foo (typename B<T, __is_empty (T)>::X* = 0) { return 0; } template <class T> int foo (typename B<T, !__is_empty (T)>::X* = 0) { return 1; } int main () { foo<A<0> >(); } z.C: In function int foo(typename B<T, __is_empty(T)>::X*) [with T = A<0>]: z.C:6: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -- Summary: ICE on SFINAE and __is_empty Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sebor at roguewave dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36797
next reply other threads:[~2008-07-10 21:27 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-07-10 21:27 sebor at roguewave dot com [this message] 2008-07-11 11:09 ` [Bug c++/36797] " paolo dot carlini at oracle dot com 2008-07-11 11:12 ` paolo dot carlini at oracle dot com 2008-07-11 13:55 ` paolo dot carlini at oracle dot com 2008-07-13 17:42 ` mmitchel at gcc dot gnu dot org 2008-07-14 9:16 ` paolo dot carlini at oracle dot com 2008-07-14 15:25 ` sebor at roguewave dot com 2008-07-14 15:28 ` mark at codesourcery dot com 2008-07-14 15:42 ` sebor at roguewave dot com 2008-07-14 16:53 ` mark at codesourcery dot com 2008-07-14 18:44 ` sebor at roguewave dot com 2009-08-03 0:01 ` paolo dot carlini at oracle dot com 2009-08-19 18:50 ` jason at gcc dot gnu dot org 2010-04-21 22:50 ` [Bug c++/36797] ICE mangling __is_empty jason at gcc dot gnu dot 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-36797-1186@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).