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]

nested templated class bug in version 2.95.1 19990816 (release)


Hello,

Please try to compile the attached code example. It worked with 
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

I get:

dresden:~/qmcm/cupi/src>gcc -v --save-temps -c Test.C
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/specs
gcc version 2.95.1 19990816 (release)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/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.C Test.ii
GNU CPP version 2.95.1 19990816 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/../../../../include/g++-3
 /usr/local/include

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/../../../../i686-pc-linux-gnu/include
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.1/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.1/cc1plus Test.ii -quiet
-dumpbase Test.cc -version -o Test.s
GNU C++ version 2.95.1 19990816 (release) (i686-pc-linux-gnu) compiled by
GNU C version 2.95.1 19990816 (release).
Test.C:10: Internal compiler error.
Test.C:10: Please submit a full bug report.
Test.C:10: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport>
for instructions.

Thanks

Burkhard
===============================================================================
Burkhard Militzer                                     phone:+1-217-244-3148
NCSA - University of Illinois                         FAX:  +1-217-244-2909
4009 Beckman Institute                                E-mail:militzer@uiuc.edu
405 N Mathews Ave
Urbana-Champaign,
IL 61801, USA      http://www.ncsa.uiuc.edu/Apps/CMP/militzer/research.html


template <class Pt>
class KShells {
protected:
  class KPoint;
};

// This was in kShells.C file before

template <class pt>
class KShells<pt>::KPoint : public pt {
};
# 1 "Test.C"
template <class Pt>
class KShells {
protected:
  class KPoint;
};

 

template <class pt>
class KShells<pt>::KPoint : public pt {
};

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