Bug 98328 - [Content Assist] infinite loop encountered in C projects (related to K&R C parameters)
Summary: [Content Assist] infinite loop encountered in C projects (related to K&R C pa...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Doug Schaefer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-06-03 13:26 EDT by Devin Steffler CLA
Modified: 2009-01-09 16:57 EST (History)
1 user (show)

See Also:


Attachments
patch for this PR (1.61 KB, patch)
2005-06-03 13:47 EDT, Devin Steffler CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Steffler CLA 2005-06-03 13:26:54 EDT
int foo2(int i) {
	return i;	
}

void foo() {
	int i=0;
	foo2(i), foo2 // content assist after foo2 causes an infinite loop
}
Comment 1 Devin Steffler CLA 2005-06-03 13:47:57 EDT
Created attachment 22340 [details]
patch for this PR

Here's a patch that fixes the problem although I'm not yet sure how to get a
content assist test going that uses the GCCParserExtensionConfiguration (since
K&R C support is required to reproduce).
Comment 2 John Camelon CLA 2005-06-06 11:51:44 EDT
Applied.  
Thanks!