This is the mail archive of the gcc-bugs@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]

bug report


Hi,

I attached three files:

abug.cpp
abug.ii
compiler_version.txt

Regards
Klaus

--

Klaus Jünemann
Limmerstrasse 80
30451 Hannover
Tel: 0511 / 455914
Germany

Abug.cpp

# 1 "abug.cpp"
template <class T>
struct A
{
  A& operator=(const A&) {return *this; }
};

template <class T>
struct B : A<T>
{
  B(const A& a) : A<T>(a) {}
  B& operator=(const B& b) {A<T>::operator=(b); return *this; }
};


int main()
{
  return 0;
}
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/specs
Configured with:
gcc version 2.97 20001009 (experimental)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cpp0 -lang-c++ -D__GNUG__=2 -v -D__GNUC__=2 -D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__STDC_HOSTED__=1 -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_i686__ -D__tune_pentiumpro__ abug.cpp abug.ii
GNU CPP version 2.97 20001009 (experimental) (cpplib) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++-3
 /usr/local/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/include
 /usr/local/i686-pc-linux-gnu/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.97/cc1plus -lang-c++ abug.ii -quiet -dumpbase abug.cpp -version -o abug.s
GNU C++ version 2.97 20001009 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 2.97 20001009 (experimental).
abug.cpp:10: parse error before '&' token
abug.cpp:10: missing ';' before right brace
abug.cpp:11: ISO C++ forbids defining types within return type
abug.cpp:11: syntax error before '&' token
abug.cpp:11: parse error before '&' token
abug.cpp:11: ISO C++ forbids declaration of `operator=' with no type
abug.cpp:11: `operator=(...)' must be a nonstatic member function
abug.cpp:11: Internal error: Segmentation fault.
   Please submit a full bug report.
   See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.    
begin:vcard 
n:;Klaus
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
end:vcard

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