Using friend functions into template<> classes, I get an internal error.
GNU C++ version 4.0.1 (Apple Computer, Inc. build 5363) (powerpc-apple-darwin8) compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5363). GGC heuristics: --param ggc-min-expand=65 --param ggc-min-heapsize=65536 Compiler executable checksum: ce9235a98d7fdb10daff64ff72fa17f5 ../../include/viewAsGraph.hh: In instantiation of 'viewAsGraph<std::vector<edgeTest, std::allocator<edgeTest> > >': ../src/viewAsGraphTest.cc:21: instantiated from here ../../include/viewAsGraph.hh:153: internal compiler error: Bus error Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://developer.apple.com/bugreporter> for instructions. -- Summary: internal compiler error Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: smirolo at hotmail dot com GCC build triplet: powerpc-apple-darwin8 GCC host triplet: powerpc-apple-darwin8 GCC target triplet: powerpc-apple-darwin8 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28785