This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24648] a template parse error
- From: "jesse at rigidbounds dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2008 19:34:51 -0000
- Subject: [Bug c++/24648] a template parse error
- References: <bug-24648-11639@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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