Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328063 - Name resolution problem using typedef to cv-qualified class as class-name
Summary: Name resolution problem using typedef to cv-qualified class as class-name
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-18 14:50 EDT by Jens Elmenthaler CLA
Modified: 2010-10-20 11:23 EDT (History)
1 user (show)

See Also:


Attachments
testcase + fix (2.15 KB, patch)
2010-10-20 10:28 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 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.