This is the mail archive of the gcc@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]
Other format: [Raw text]

3.4.3 C++ parsing bug?


Can someone verify that this is valid C++ before I submit a bug report:

// test.C
template <class T> class A {static T* c;};

class B : public A<B> {};

B* A<B>::c=0;
// end test.C




g++ -v -c test.C
Reading specs from /usr/local/gcc343/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Configured with: ../gcc-3.4.3/configure --prefix=/usr/local/gcc343
--disable-threads
Thread model: single
gcc version 3.4.3
 /usr/local/gcc343/libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1plus -quiet -v
-D_GNU_SOURCE test.C -quiet -dumpbase test.C -mtune=pentiumpro -auxbase test
-version -o /tmp/cczC5foC.s
ignoring nonexistent directory
"/usr/local/gcc343/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux
-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 
/usr/local/gcc343/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.
4.3
 
/usr/local/gcc343/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.
4.3/i686-pc-linux-gnu
 
/usr/local/gcc343/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../include/c++/3.
4.3/backward
 /usr/local/include
 /usr/local/gcc343/include
 /usr/local/gcc343/lib/gcc/i686-pc-linux-gnu/3.4.3/include
 /usr/include
End of search list.
GNU C++ version 3.4.3 (i686-pc-linux-gnu)
	compiled by GNU C version 3.3.2.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=31994
test.C:7: error: too few template-parameter-lists
test.C:7: error: expected `,' or `;' before '=' token

Compilation exited abnormally with code 1 at Fri Feb 11 13:35:48


Thanks in advance
Jan N. Reimers (Ph.D.)
Manager, Materials Research
E-One Moli Energy (Canada) Ltd.
 


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