[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Template bug?
From: |
Paul Pluzhnikov |
Subject: |
Re: Template bug? |
Date: |
16 Jul 2004 07:27:50 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
Martin Magnusson <martin@-xx-blecket-xx-.org> writes:
> In comp.lang.c++ it was suggested that this could be a compiler
> bug. Can anybody here confirm that?
Looks like a g++ bug (versions 2.95.x through 3.4.0).
The code compiles fine with EDG front end, and with HP aCC.
There is a trivial workaround:
typedef Vector<N,float> VNf;
Vertex( VNf position = VNf( 0 ) );
compiles fine with 2.95.3, 3.3.2 and 3.4
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
- Template bug?, Martin Magnusson, 2004/07/16
- Re: Template bug?,
Paul Pluzhnikov <=