Bug 525954 - [false negative] Reference to class template incorrectly resolved without template arguments
Summary: [false negative] Reference to class template incorrectly resolved without tem...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-12 14:12 EDT by Nathan Ridge CLA
Modified: 2020-09-04 15:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2017-10-12 14:12:38 EDT
In the following code:

namespace N {
    template <typename T>
    class Waldo {};
}

void foo(N::Waldo);

the name "N::Waldo" is incorrectly resolved, even though no template arguments have been provided.

Note that if the class template is moved to the global namespace, or 'foo' into namespace 'N', such that we are referencing the template name without qualification, we do give an error as expected.