From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22953 invoked by alias); 20 Oct 2003 19:29:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22939 invoked by uid 48); 20 Oct 2003 19:29:16 -0000 Date: Mon, 20 Oct 2003 19:31:00 -0000 From: "belz at kolumbus dot fi" To: gcc-bugs@gcc.gnu.org Message-ID: <20031020192912.12694.belz@kolumbus.fi> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/12694] New: insufficient contextual information to determine type - templated function parameter X-Bugzilla-Reason: CC X-SW-Source: 2003-10/txt/msg01650.txt.bz2 List-Id: 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 void foo(const T& string) { string.data(); } error: insufficient contextual information to determine type Same occures whatever the namespace a is, eg. including using gcc version 3.4 20031015 (experimental) in mandrake 9.1