Bug 12694 - [3.4 regression] insufficient contextual information to determine type - templated function parameter
Summary: [3.4 regression] insufficient contextual information to determine type - temp...
Status: RESOLVED DUPLICATE of bug 12397
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.4.0
: P2 critical
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2003-10-20 19:29 UTC by Mikael Kilpeläinen
Modified: 2004-01-17 04:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-12-19 07:08:05


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Kilpeläinen 2003-10-20 19:29:13 UTC
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
Comment 1 Wolfgang Bangerth 2003-10-20 19:47:31 UTC
Confirmed. This is totally bogus! It compiles with 3.3, so is a mainline
regression.

W.
Comment 2 Wolfgang Bangerth 2003-10-20 19:50:29 UTC
This looks related to PR 12937.
Comment 3 Nathan Sidwell 2003-10-24 08:12:47 UTC
there is infinite recursion going on with VAARG_EXPR and force_rvalue
Comment 4 Mark Mitchell 2003-12-22 20:55:34 UTC

*** This bug has been marked as a duplicate of 12397 ***