[Bug c++/53164] New: Undefined reference to template function instantiation

poletti.marco at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 30 09:46:00 GMT 2012


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

             Bug #: 53164
           Summary: Undefined reference to template function instantiation
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: poletti.marco@gmail.com


Created attachment 27266
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27266
A (hopefully) minimal test case

g++ 4.6.2 gives an undefined reference error in the attached code.
It works fine in clang++.

Set the macro WORKAROUND to 1 to workaround the issue (also highlighting the
fact that the template function can be instantiated).



More information about the Gcc-bugs mailing list