Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 327069

Summary: ADL doesn't work for template class.
Product: [Tools] CDT Reporter: Vasiliy Dybala <dibalavs>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Mike Kucera <mikekucera>
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

Description Vasiliy Dybala CLA 2010-10-06 04:10:44 EDT
Build Identifier:  201009242334

1. Enter code:

template <class T>
class Ptr{};

namespace NS
{
  class T {};
  void f(Ptr<T>);
}

void test()
{
  Ptr<NS::T> parm;
  f(parm);
}

2. parses says that f(param) could not be found. But this compile successfully.

Reproducible: Always

Steps to Reproduce:
1. Launch eclipse
2. write code
3. see error.
Comment 1 Markus Schorn CLA 2010-10-07 05:45:13 EDT
Created attachment 180404 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2010-10-07 05:46:04 EDT
Fixed in 8.0 > 20101007.