Newsgroups: comp.os.msdos.djgpp Date: Tue, 21 Sep 1999 11:07:16 +0300 (EDT) From: Jari Karppinen X-Sender: jakarppi AT paju DOT oulu DOT fi To: Andris Pavenis cc: djgpp AT delorie DOT com Subject: Re: Trouble with templates and gcc-2.95 In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > I suggest making smaller test example (to be more sure somebody will take > a look at it) and to ask a question in gcc mailing list (gcc AT gcc DOT gnu DOT org). Ok, I will do that. By the way, it seems that the problem is related to these declarations in the class body: friend Vector operator + <> (const Vector&, const Vector&); friend Vector operator - <> (const Vector&, const Vector&); friend Vector operator * <> (const Vector&, const T&); friend Vector operator * <> (const T&, const Vector&); friend Vector operator / <> (const Vector&, const T&); If I remove them, everything goes all right. No errors occur while compiling and the code seems to work like it should. Am I possibly doing something completely wrong here? How should this kind of code be written in the first place (according to the standard, that is)?