public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15949] New: Error using a qualified-id in a function template
@ 2004-06-11 21:08 apl at alum dot mit dot edu
2004-06-11 21:10 ` [Bug c++/15949] " apl at alum dot mit dot edu
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: apl at alum dot mit dot edu @ 2004-06-11 21:08 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/15949] Error using a qualified-id in a function template
2004-06-11 21:08 [Bug c++/15949] New: Error using a qualified-id in a function template apl at alum dot mit dot edu
@ 2004-06-11 21:10 ` apl at alum dot mit dot edu
2004-06-11 21:15 ` apl at alum dot mit dot edu
2004-06-11 21:18 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: apl at alum dot mit dot edu @ 2004-06-11 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From apl at alum dot mit dot edu 2004-06-11 21:10 -------
Created an attachment (id=6521)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6521&action=view)
simple test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15949
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/15949] Error using a qualified-id in a function template
2004-06-11 21:08 [Bug c++/15949] New: Error using a qualified-id in a function template apl at alum dot mit dot edu
2004-06-11 21:10 ` [Bug c++/15949] " apl at alum dot mit dot edu
@ 2004-06-11 21:15 ` apl at alum dot mit dot edu
2004-06-11 21:18 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: apl at alum dot mit dot edu @ 2004-06-11 21:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From apl at alum dot mit dot edu 2004-06-11 21:15 -------
If I change the collision function to not be templated ala
bool collision (NUNetRef&a, NUNetRef& b) {
int dummy;
NUNetRefCompareFunction f = &NUNetRef::overlaps;
return (a.*f)(b);
}
Then it compiles without error.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |3.3.3 3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15949
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/15949] Error using a qualified-id in a function template
2004-06-11 21:08 [Bug c++/15949] New: Error using a qualified-id in a function template apl at alum dot mit dot edu
2004-06-11 21:10 ` [Bug c++/15949] " apl at alum dot mit dot edu
2004-06-11 21:15 ` apl at alum dot mit dot edu
@ 2004-06-11 21:18 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-11 21:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-11 21:18 -------
This is a dup of bug 15875 which is fixed by reverting the patch which caused this regression.
*** This bug has been marked as a duplicate of 15875 ***
*** This bug has been marked as a duplicate of 15875 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Known to work|3.3.3 3.4.0 |
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15949
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-06-11 21:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11 21:08 [Bug c++/15949] New: Error using a qualified-id in a function template apl at alum dot mit dot edu
2004-06-11 21:10 ` [Bug c++/15949] " apl at alum dot mit dot edu
2004-06-11 21:15 ` apl at alum dot mit dot edu
2004-06-11 21:18 ` pinskia 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).