This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/15949] New: Error using a qualified-id in a function template


Using a pointer-to-member call referring to a virtual member function inside a
templated function results in the error: 


invalid use of ' NUNetRef::overlaps' to form a pointer-to-member-function.  Use
a qualified-id.


The example compiles in 3.3.3 and 3.4.0 but doesn't compile in 3.4-20040604.  If
I make the templated function a regular function, it compiles without error.

<example checked in momentarily>

-- 
           Summary: Error using a qualified-id in a function template
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: apl at alum dot mit dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]