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.