This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/134: Re: Internal Compiler Error in templated member fn handling



>Number:         134
>Category:       c++
>Synopsis:       Internal Compiler Error in templated member fn handling
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          analyzed
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 25 09:16:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Rob Taylor <rob.taylor@ukonline.co.uk>
>Release:        2.95.2
>Organization:
>Environment:
>Description:
 Original-Message-ID: <38D8C6A7.2E31DE7D@ukonline.co.uk>
 Date: Wed, 22 Mar 2000 13:12:07 +0000

 find attached a bug report. It's pretty self explanitory.

 gcc version: 2.95.2 
 system: i686-pc-linux-gnu

 Rob Taylor

Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ test.cpp test.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus test.ii -quiet -dumpbase test.cc -version -o test.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
test.cpp:7: warning: all member functions in class `test' are private
test.cpp: In method `class test & test::do_domething(const DOG &)':
test.cpp:12: Internal compiler error.
test.cpp:12: Please submit a full bug report.
test.cpp:12: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.


>How-To-Repeat:
# 1 "test.cpp"


class test
{
  template<class DOG>
  test &do_domething(const DOG &d);
};

template<class  DOG>
test &test::do_domething(const DOG &d)
{
  typename DOG::pants;
  DOG::pants i;
  return *this;
}

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]