public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36797]  New: ICE on SFINAE and __is_empty
@ 2008-07-10 21:27 sebor at roguewave dot com
  2010-04-21 22:50 ` [Bug c++/36797] ICE mangling __is_empty jason at gcc dot gnu dot org
  0 siblings, 1 reply; 6+ messages in thread
From: sebor at roguewave dot com @ 2008-07-10 21:27 UTC (permalink / raw)
  To: gcc-bugs

[-- 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-09 14:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36797-4@http.gcc.gnu.org/bugzilla/>
2012-01-12 17:41 ` [Bug c++/36797] ICE mangling __is_empty jason at gcc dot gnu.org
2012-01-12 17:48 ` jason at gcc dot gnu.org
2012-01-12 17:51 ` jason at gcc dot gnu.org
2012-03-04  0:57 ` jason at gcc dot gnu.org
2012-07-09 14:55 ` jason at gcc dot gnu.org
2008-07-10 21:27 [Bug c++/36797] New: ICE on SFINAE and __is_empty sebor at roguewave dot com
2010-04-21 22:50 ` [Bug c++/36797] ICE mangling __is_empty jason at gcc dot gnu dot org

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).