public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15664] New: Linker fails to find (inline) function
@ 2004-05-27 11:39 igodard at pacbell dot net
  2004-05-27 11:41 ` [Bug c++/15664] " igodard at pacbell dot net
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: igodard at pacbell dot net @ 2004-05-27 11:39 UTC (permalink / raw)
  To: gcc-bugs

Linker doesn't find operator==(class, class). The definition of the operator is "inline", but removing that doesn't help. Problem occurs in both -O0 and -O2, consistent with inline not important. Operator is declared, then redeclared as a friend, then defined. The definition finds the friend (comment out friend gives syntax errors on invisibles in the definition). The first declaration is not needed; no change if it is commented out. I suspect an error in name mangling, as the operator has a complicated type with two template templates, but the type listed in the error message seems correct.

-- 
           Summary: Linker fails to find (inline) function
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: igodard at pacbell dot net
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15664


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-12-02 12:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27 11:39 [Bug c++/15664] New: Linker fails to find (inline) function igodard at pacbell dot net
2004-05-27 11:41 ` [Bug c++/15664] " igodard at pacbell dot net
2004-05-27 11:44 ` igodard at pacbell dot net
2004-05-27 11:44 ` igodard at pacbell dot net
2004-05-27 11:47 ` bangerth at dealii dot org
2004-05-27 12:12 ` igodard at pacbell dot net
2004-05-27 13:05 ` igodard at pacbell dot net
2004-05-27 13:17 ` igodard at pacbell dot net
2004-05-27 13:50 ` bangerth at dealii dot org
2004-05-27 18:48 ` [Bug c++/15664] Template friend injection fails giovannibajo at libero dot it
2004-08-12  0:57 ` pinskia at gcc dot gnu dot org
2004-11-11 12:44 ` lerdsuwa at gcc dot gnu dot org
2004-11-12 16:58 ` lerdsuwa at gcc dot gnu dot org
2004-12-02 12:01 ` cvs-commit at gcc dot gnu dot org
2004-12-02 12:02 ` lerdsuwa at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).