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

Bug 351009

Summary: Code assistance fails when printing argument list for a call to a base class constructor in a derived classes constructor (C++)
Product: [Tools] CDT Reporter: ivstalin
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug, daniel_megert
Version: 8.0   
Target Milestone: 8.0.1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description ivstalin CLA 2011-07-02 19:32:31 EDT
Code assistance fails when printing argument list for a call to a base class constructor in a derived classes constructor (C++):

For example, if I press ctrl+space to complete the parameters for the QWidget() constructor in the following method, I get 'no proposals'.
LineGraphWidget::LineGraphWidget(QWidget* parent, const int width, const int height, const int gridInterval)
    : QWidget(parent) <<<< press ctrl+space in argument list here

...however, if I prefix the QWidget() call with the global scope operator, it works correctly:

LineGraphWidget::LineGraphWidget(QWidget* parent, const int width, const int height, const int gridInterval)
    : ::QWidget(parent)

-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.linuxtools.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Markus Schorn CLA 2011-07-05 05:56:02 EDT
Thanks, I can reproduce the problem. I am pretty sure that it is a parser issue.
Comment 2 Markus Schorn CLA 2011-07-05 07:47:43 EDT
Added testcase, fixed in CDT 8.0.1 > 20110705.