[Bug c++/12694] New: insufficient contextual information to determine type - templated function parameter

belz at kolumbus dot fi gcc-bugzilla@gcc.gnu.org
Mon Oct 20 19:31:00 GMT 2003


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



More information about the Gcc-bugs mailing list