This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24648] a template parse error



------- Comment #3 from jesse at rigidbounds dot com  2008-12-23 19:34 -------
This seems like the same issue to me.  The first test() method compiles fine. 
The second has the following error:

11: error: expected `;' before "itrValue"

class Test
{
    void test(std::list<int>& intList)
    {
        std::list<int>::iterator itrValue = intList.begin();
    }

    template <class T>
    void test(std::list<T>& listTemplate)
    {
        std::list<T>::iterator itrValue = listTemplate.begin();
    }
};


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24648


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]