[Bug c++/15949] New: Error using a qualified-id in a function template
apl at alum dot mit dot edu
gcc-bugzilla@gcc.gnu.org
Fri Jun 11 21:08:00 GMT 2004
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
More information about the Gcc-bugs
mailing list