https://sourceware.org/bugzilla/show_bug.cgi?id=17527

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |amodra at gmail dot com
         Resolution|---                         |INVALID

--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Not a linker bug. __attribute__((section ...)) on functions in classes breaks
the mechanism g++ uses to arrange for just one copy of the function to be kept.

Trunk g++ diagnoses this as an error

In file included from main.cpp:6:0:
TestHandler.h: At global scope:
TestHandler.h:10:7: error: Both section and comdat group is set
 class TestHandler : public GeneralHandler

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to