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]

i think this is a bug



hi,

Reading specs from /opt/egcs/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.92.00/specs
gcc version egcs-2.92.00 19980720 (gcc2 ss-980609 experimental)
 /opt/egcs/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.92.00/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=92 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acp
u(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ /tmp/bug.cc /tmp/ccciJkyC.ii
GNU CPP version egcs-2.92.00 19980720 (gcc2 ss-980609 experimental) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/qt/include
 /usr/local/qt/include
 /opt/egcs/include/g++
 /opt/egcs/include
 /opt/egcs/i686-pc-linux-gnulibc1/include
 /opt/egcs/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.92.00/include
 /usr/include
End of search list.
 /opt/egcs/lib/gcc-lib/i686-pc-linux-gnulibc1/egcs-2.92.00/cc1plus /tmp/ccciJkyC.ii -quiet -dumpbase bug.cc -version -o /tmp/cc88G9Ca.s
GNU C++ version egcs-2.92.00 19980720 (gcc2 ss-980609 experimental) (i686-pc-linux-gnulibc1) compiled by GNU C version egcs-2.92.00 19980720 (gcc2 ss-980609 experimental).
/tmp/bug.cc: In function `int main()':
/tmp/bug.cc:19: qualified type `test' does not match destructor name `~test::testList'
/tmp/bug.cc:19: type `test' is not a base type for type `list<void *,__default_alloc_template<false,0> >'


****************************************

#include <list>

class test {
  typedef list< void * > testList;
}; 

int main()  {
  test::testList tl; 
  tl.test::~testList(); 
  return (0);
}




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