Re: template class

2011-06-10 Thread Ruben Safir
FWIW Array( const Array&rhs ); On Fri, Jun 10, 2011 at 08:30:05PM -0700, eric wrote: > Dear Mr. Bjarne Stroustrup: > > Thanks your suggestion, I follow it but it show fatal error:Array.cpp: > no such file > so > I add #include "Array.cpp" in my main program, pg52.cpp > then > it can compile

Re: template class

2011-06-10 Thread Ian Lance Taylor
eric writes: > Thanks your suggestion, I follow it but it show fatal error:Array.cpp: > no such file > so > I add #include "Array.cpp" in my main program, pg52.cpp > then > it can compile > but > when I run it, it response > Segmentation fault > > again it's g++ 4.5.2. What may cause wrong? >

Re: template class

2011-06-10 Thread eric
Dear Mr. Bjarne Stroustrup: Thanks your suggestion, I follow it but it show fatal error:Array.cpp: no such file so I add #include "Array.cpp" in my main program, pg52.cpp then it can compile but when I run it, it response Segmentation fault again it's g++ 4.5.2. What may cause wrong? hope to

Invocation mismatch - some data files may have been removed

2011-06-10 Thread Jack Howarth
I am seeing some non-fatal warnings when doing a profiledbootstrap/ltobootstap on x86_64 darwin. These are of the form... profiling:/sw/src/fink.build/gcc47-4.7.0-1000/darwin_objdir/gcc/graphite-poly.gcda:Invocation mismatch - some data files may have been removedprofiling:/sw/src/fink.build

Re: mips-elf-gcc -fno-delayed-branch problem

2011-06-10 Thread Hans-Peter Nilsson
On Thu, 19 May 2011, Richard Sandiford wrote: > Maybe it would be worth breaking with tradition and making > -fno-delayed-branch imply -Wa,-O0 though. Back in the day, > the assembler's version of delayed-branch filling was applied > to pretty much every function, so the separation was probably >

gcc-4.6-20110610 is now available

2011-06-10 Thread gccadmin
Snapshot gcc-4.6-20110610 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20110610/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.6 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/branches

[pph] name lookup problem

2011-06-10 Thread Diego Novillo
Gab has been debugging a failure that goes like this: In testsuite/g++.dg/pph/x1functions.h: struct type { int mbr_decl_then_def(int); int mbr_decl_inline(int i) { } } In testsuite/g++.dg/pph/x1functions.cc: #include "x1functions.h" int type::mbr_decl_then_def(int i) { return mbr_decl_inl