Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326076 - Invalid overload for templated argument
Summary: Invalid overload for templated argument
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: All All
: 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-09-23 12:57 EDT by Marc-André Laperle CLA
Modified: 2010-09-28 11:23 EDT (History)
0 users

See Also:


Attachments
testcase + fix (6.95 KB, patch)
2010-09-28 08:19 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 Marc-André Laperle CLA 2010-09-23 12:57:01 EDT
Using CDT 8.0 (201009161207)

#include <vector>
#include <algorithm>
using namespace std;

template<typename T>
bool MySort(const T& a, const T& b) {
    return(true);
}

int main() {
	vector<int>  test;
	sort(test.begin(), test.end(), MySort<int>);
	return 0;
}


MySort<int> generates an error (codan) "Invalid overload". This is not the case in 7.0 (using Problems syntax coloring). Maybe this is caused by the fix in bug 85843?
Comment 1 Markus Schorn CLA 2010-09-28 08:19:26 EDT
Created attachment 179731 [details]
testcase + fix

Thanks Marc!
Comment 2 Markus Schorn CLA 2010-09-28 08:21:56 EDT
Fixed in 8.0 > 20100928.