Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327069 - ADL doesn't work for template class.
Summary: ADL doesn't work for template class.
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Mike Kucera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-06 04:10 EDT by Vasiliy Dybala CLA
Modified: 2010-10-07 08:23 EDT (History)
0 users

See Also:


Attachments
testcase + fix (5.80 KB, patch)
2010-10-07 05:45 EDT, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.