public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35159]  New: g++ inoperable with no error message
@ 2008-02-11  7:38 nightstrike at gmail dot com
  2008-02-11  7:40 ` [Bug c++/35159] " nightstrike at gmail dot com
                   ` (25 more replies)
  0 siblings, 26 replies; 27+ messages in thread
From: nightstrike at gmail dot com @ 2008-02-11  7:38 UTC (permalink / raw)
  To: gcc-bugs

To summarize, c++ doesn't work in a native build for x86_64-pc-mingw32. We have
found that not all of c++ is broken, and I've been narrowing it down further.
The problem manifests itself as a segfault and ICE that is only visible when
you use the -E switch -- otherwise, the failure is silent. This in and of
itself I think is a bug, and we should report it to gcc. 

The segfault can be triggered by #including a c++ header like iostream or
cmath. Further digging reveals that it's not all of the headers. I found that
for instance cassert works fine. I've been able to narrow down cmath's failure
due to including <ext/type_traits.h>, and this might be the failure point for
everything.

I think I've found a reduced test case... 

#include <bits/c++config.h> 
#include <bits/cpp_type_traits.h> 
template<bool, typename> 
struct __enable_if 
{ }; 

template<typename _Tp> 
struct __enable_if<true, _Tp> 
{ typedef _Tp __type; }; 

int main() {return 0; } 



That code is taken from the ext/type_traits.h header. It doesn't give any error
(and no segfault in the -E output), but it won't compile. If you get rid of the
second template, it will compile and link to create an executable. This is, I
think, getting much closer to the heart of the problem. I think we should post
on gcc soon for this.


-- 
           Summary: g++ inoperable with no error message
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nightstrike at gmail dot com
  GCC host triplet: x86_64-pc-mingw32
GCC target triplet: x86_64-pc-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35159


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

end of thread, other threads:[~2009-06-24 10:28 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-11  7:38 [Bug c++/35159] New: g++ inoperable with no error message nightstrike at gmail dot com
2008-02-11  7:40 ` [Bug c++/35159] " nightstrike at gmail dot com
2008-02-11 14:52 ` rguenth at gcc dot gnu dot org
2008-02-11 14:57 ` ktietz at gcc dot gnu dot org
2008-02-14  1:54 ` nightstrike at gmail dot com
2008-02-14  7:00 ` mmitchel at gcc dot gnu dot org
2008-02-14  8:16 ` jakub at gcc dot gnu dot org
2008-02-14  9:08 ` ktietz at gcc dot gnu dot org
2008-02-14  9:19 ` ubizjak at gmail dot com
2008-02-14  9:27 ` ktietz at gcc dot gnu dot org
2008-02-14  9:33 ` rguenth at gcc dot gnu dot org
2008-02-14  9:39 ` ubizjak at gmail dot com
2008-02-14 10:04 ` ktietz at gcc dot gnu dot org
2008-02-14 14:28 ` nightstrike at gmail dot com
2008-02-14 14:29 ` nightstrike at gmail dot com
2008-02-16 17:23 ` [Bug c++/35159] g++ and gfortran " nightstrike at gmail dot com
2008-02-16 19:51 ` ktietz at gcc dot gnu dot org
2008-03-06  3:01 ` nightstrike at gmail dot com
2008-03-06  4:51 ` jvdelisle at gcc dot gnu dot org
2008-03-06  5:10 ` nightstrike at gmail dot com
2008-03-06 16:09 ` nightstrike at gmail dot com
2008-03-08  6:06 ` jvdelisle at gcc dot gnu dot org
2008-05-13 13:24 ` nightstrike at gmail dot com
2008-09-21 15:03 ` pepalogik at seznam dot cz
2008-09-21 17:08 ` nightstrike at gmail dot com
2008-10-20 11:25 ` ktietz at gcc dot gnu dot org
2009-06-24 10:28 ` ktietz 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).