This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21909] New: Mis-identifies template
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2005 10:31:56 -0000
- Subject: [Bug c++/21909] New: Mis-identifies template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
A function declared: "template<typename T> void operator<<(const T&)"
when called with an l-value of type "invoke<flow>*" is invoked with T bound to
"invoke<flow>" (missing the "*"), as shown by the diagnostic in the example
attached. The diagnostic itself is not the problem, it just shows the incorrect
binding; the function body was expecting the pointer and didn't get it. Code
compiles fine if changed to expect a non-pointer and one is passed.
--
Summary: Mis-identifies template
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21909