With CVS version as of today:
$ ~/gcc-test/bin/g++ -c ./boundcpy.ii
./boundcpy.ii: In member function �T& Vec3<T>::operator[](int) const [with T =
REAL]�:
./boundcpy.ii:33: instantiated from here
./boundcpy.ii:20: internal compiler error: Segmentation fault
Please submit a full bug report,
--
Summary: ice on valid template code
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Ralf dot Wildenhues at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19270