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

Bug 328063

Summary: Name resolution problem using typedef to cv-qualified class as class-name
Product: [Tools] CDT Reporter: Jens Elmenthaler <jens.elmenthaler>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

Description Jens Elmenthaler CLA 2010-10-18 14:50:27 EDT
Build Identifier: HEAD

Create a source file with the following content:

  class Type {
  public:
    class const_iterator {

    };
  };

  typedef const Type ConstType;

  ConstType::const_iterator cit;

In this example, const_iterator in the last line cannot be resolved. Removing the const from the typedef, however, it can.

Reproducible: Always
Comment 1 Markus Schorn CLA 2010-10-20 10:28:22 EDT
Created attachment 181294 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2010-10-20 10:30:33 EDT
Fixed in 8.0 > 20101020.