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
  2008-07-11 11:09 ` [Bug c++/36797] " paolo dot carlini at oracle dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 19+ 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] 19+ messages in thread
[parent not found: <bug-36797-4@http.gcc.gnu.org/bugzilla/>]

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

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-10 21:27 [Bug c++/36797] New: ICE on SFINAE and __is_empty sebor at roguewave dot com
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
     [not found] <bug-36797-4@http.gcc.gnu.org/bugzilla/>
2012-01-12 17:41 ` 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

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