This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54376] incorrect complaint about redefinition
- From: "drepper.fsp at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 25 Aug 2012 22:54:02 +0000
- Subject: [Bug c++/54376] incorrect complaint about redefinition
- Auto-submitted: auto-generated
- References: <bug-54376-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54376
--- Comment #10 from Ulrich Drepper <drepper.fsp at gmail dot com> 2012-08-25 22:54:02 UTC ---
Created attachment 28085
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28085
Avoid nested inlined friend functions
This patch fixes the issue for me. It also cleans the code. There is
currently a lot of inconsistency as to where the operator== functions are
defined, all depending on whether they are friends or not.
With this patch all operator== are defined after the class and friend
declarations are used.