Date: Tue, 1 Feb 1994 10:29:37 -0500 From: garym AT virtual DOT rose DOT utoronto DOT ca (Gary Lawrence Murphy) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Compiler bug in Templates? I don't think this was the sole cause of the troubles I reported yesterday, but that series of errors on AS finding '<' vanished completely when I removed the -g2 debug switch; in the code, I had the definition for the template class ostream operator inline in the header, and this error may have been aggrivated by having the multiple definitions in the object files, but I couldn't get that far with the compile until I stopped including the debugging symbols. Inspecting the -S output, all three errors were caused by the string "Coordinate<" followed by the type of coordinate; since I use 3 coordinate types, this generated three errors. I'm not certain ostream caused the problem, but the rest of my code had been happily compiling for months and only triggered the AS complaint after I'd added the << operator. I have a work-around (don't use -g2) so I can get on with this project, but I thought I would alert the group in case the trouble rings a bell with anyone hip to making the fix. Gary Lawrence Murphy ----------------- garym AT virtual DOT rose DOT utoronto DOT ca University of Toronto ---------- 4 Taddle Creek, Toronto, Ont M5S 1A4 Human Factors, Ind Engineering ------------ fax/voice: (416) 978-3776 ----------------------- The true destination is always just here, now