This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15949] New: Error using a qualified-id in a function template
- From: "apl at alum dot mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2004 21:08:26 -0000
- Subject: [Bug c++/15949] New: Error using a qualified-id in a function template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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