public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/25342]  New:  internal compiler error: in lookup_member, at cp/search.c:1209
@ 2005-12-10 23:57 jkherciueh at gmx dot net
  2005-12-11  0:31 ` [Bug c++/25342] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: jkherciueh at gmx dot net @ 2005-12-10 23:57 UTC (permalink / raw)
  To: gcc-bugs

g++ asked me to submit this report. It crashed on the following piece of code:

template < typename eval >
struct tpl_seq_search {

  typedef typename eval::enum_type  Enum;

  template < Enum first, Enum last >
  struct range {

    static void find () {
      range<first+1,last>::find();
    }

  };// range

  template < Enum val >
  struct range<val,val> {

    static void find () {}

  };// range

}; // tpl_bin_search

template < typename eval, typename eval::enum_type first, typename
eval::enum_type last >
void
tpl_seq_search_from_to () {
  return( tpl_seq_search<eval>::template range<first,last>::find() );
}

struct xxx {

  typedef int enum_type;
  static enum_type const first = 0;
  static enum_type const last = 20;

};

int main ( void ) {
  tpl_seq_search_from_to<xxx,xxx::first,xxx::last>();
}

gcc> /added/pkg/gcc-4.0.2/usr/bin/g++ bug_20051208_01.cc 
bug_20051208_01.cc: In function 'void tpl_seq_search_from_to() [with eval =
xxx, typename eval::enum_type first = 0, typename eval::enum_type last = 20]':
bug_20051208_01.cc:39:   instantiated from here
bug_20051208_01.cc:27: internal compiler error: in lookup_member, at
cp/search.c:1209
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.



The specs are:

gcc> /added/pkg/gcc-4.0.2/usr/bin/g++ -v                 
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure --prefix=/added/pkg/gcc-4.0.2/usr
Thread model: posix
gcc version 4.0.2


Best

Kai-Uwe Bux


-- 
           Summary:  internal compiler error: in lookup_member, at
                    cp/search.c:1209
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jkherciueh at gmx dot net


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


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

end of thread, other threads:[~2007-02-03 16:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-10 23:57 [Bug c++/25342] New: internal compiler error: in lookup_member, at cp/search.c:1209 jkherciueh at gmx dot net
2005-12-11  0:31 ` [Bug c++/25342] [3.4/4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2005-12-11  5:47 ` mmitchel at gcc dot gnu dot org
2005-12-12  2:45 ` pinskia at gcc dot gnu dot org
2005-12-19 19:26 ` mmitchel at gcc dot gnu dot org
2006-01-14  6:01 ` pinskia at gcc dot gnu dot org
2006-01-16 20:34 ` janis at gcc dot gnu dot org
2006-02-01  2:51 ` mmitchel at gcc dot gnu dot org
2006-02-01  2:55 ` mmitchel at gcc dot gnu dot org
2006-02-01  2:56 ` [Bug c++/25342] [3.4/4.0 " mmitchel at gcc dot gnu dot org
2006-03-11  3:21 ` mmitchel at gcc dot gnu dot org
2006-08-04 21:17 ` [Bug c++/25342] [4.0 " reichelt at gcc dot gnu dot org
2006-08-04 21:40 ` reichelt at gcc dot gnu dot org
2007-02-03 16:07 ` gdr 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).