This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12694] New: insufficient contextual information to determine type - templated function parameter
- From: "belz at kolumbus dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2003 19:29:16 -0000
- Subject: [Bug c++/12694] New: insufficient contextual information to determine type - templated function parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12694
Summary: insufficient contextual information to determine type -
templated function parameter
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: belz at kolumbus dot fi
CC: gcc-bugs at gcc dot gnu dot org
following code gives an error.
namespace a { typedef int string; }
template<typename T> void foo(const T& string) { string.data(); }
error: insufficient contextual information to determine type
Same occures whatever the namespace a is, eg. including <string>
using gcc version 3.4 20031015 (experimental) in mandrake 9.1