public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35405]  New: Internal compiler error
@ 2008-02-29  0:31 carlo at gcc dot gnu dot org
  2008-02-29 12:49 ` [Bug c++/35405] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: carlo at gcc dot gnu dot org @ 2008-02-29  0:31 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]

~>g++-svn-4.3 troep.cc
troep.cc: In instantiation of ‘check<int, Saveable>’:
troep.cc:38:   instantiated from here
troep.cc:14: 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.


All 3.x (that I have installed) and all 4.x versions ice on this.

Content of troep.cc:

typedef char no;
typedef char (&yes)[2];

template <typename T, template <typename> class Concept>
  struct check
  {
    template <int H>
      struct hint;

    template <typename U>
      static no test(...);

    template <template <typename> class C, typename X, C<X>* = 0>
      struct helper
      {
        typedef yes type;
      };

    template <typename U>
      static typename helper<Concept, U>::type test(U* t);

    static bool const value = (sizeof(check::template test<T>(0)) ==
sizeof(yes));
  };

template <typename C, typename T, T C::* P>
  struct member
  {
    typedef T type;
  };

template <typename T>
  struct Saveable : member<T, void(), &T::save>
  {
  };

int main()
{
  check<int, Saveable>::value;
}


-- 
           Summary: Internal compiler error
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: carlo at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <bug-35405-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2013-05-09 15:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-29  0:31 [Bug c++/35405] New: Internal compiler error carlo at gcc dot gnu dot org
2008-02-29 12:49 ` [Bug c++/35405] [4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-03-04  0:58 ` pinskia at gcc dot gnu dot org
2008-03-04  1:20 ` mrs at apple dot com
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2008-08-13 12:58 ` dodji at gcc dot gnu dot org
2008-08-13 15:44 ` dodji at gcc dot gnu dot org
2008-11-18 12:57 ` dodji at gcc dot gnu dot org
2008-11-18 12:58 ` dodji at gcc dot gnu dot org
2008-11-19 22:29 ` dodji at gcc dot gnu dot org
2008-11-19 22:39 ` dodji at gcc dot gnu dot org
2008-11-19 22:50 ` dodji at gcc dot gnu dot org
2009-04-29 15:20 ` pinskia at gcc dot gnu dot org
     [not found] <bug-35405-4@http.gcc.gnu.org/bugzilla/>
2013-05-09 15:53 ` 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).