This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: egcs 1.1.1: odd warning message with template friend functions
- To: jonpryor@vt.edu
- Subject: Re: egcs 1.1.1: odd warning message with template friend functions
- From: Bob Aglietti <grut@hplagl.hpl.hp.com>
- Date: Mon, 15 Mar 1999 08:48:33 -0800
- Cc: cygwin@sourceware.cygnus.com
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-Reply-To: <11ad01be6eee$c7a47bf0$e63d2509@jonpryor.raleigh.ibm.com>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
>
>When I compile the attached source code, I get the
>following warning:
>
> mi.cpp:7: warning: friend declaration `bool operator ==(
> const class meta_info<T> &, const class meta_info<T> &)'
> mi.cpp:7: warning: declares a non-template function
> mi.cpp:7: warning: (if this is not what you intended, make sure
> mi.cpp:7: warning: the function template has already been declared,
> mi.cpp:7: warning: and add <> after the function name here)
> mi.cpp:8: warning: friend declaration `class meta_info<T> metaid(
> const T &)'
> mi.cpp:8: warning: declares a non-template function
Jonathan,
I don't know why this message shows up in the current version, but I installed
the 2.8.1 compiler on one of my unix systems and it's nice enough to mention
that I might want to use the option: '-fguiding-decls'. Sure enough, no
warnings. This also works with the egcs-2.91.57 compiler I'm using on my pc.
I still don't understand what changed but this'll at least get around it.
-Bob
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com