Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366273 - LR Parser does not parse the code properly with the syntax of template argument having a pointer to a class with namespace
Summary: LR Parser does not parse the code properly with the syntax of template argume...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 17:46 EST by John Liu CLA
Modified: 2020-09-04 15:19 EDT (History)
1 user (show)

See Also:


Attachments
patch to cdt_7_0 part 1 (1.22 MB, application/octet-stream)
2011-12-09 23:05 EST, John Liu CLA
no flags Details
patch to cdt_7_0 part 2 (1.21 MB, application/octet-stream)
2011-12-09 23:05 EST, John Liu CLA
no flags Details
New patch for cdt_7_0 (420.76 KB, application/x-zip-compressed)
2011-12-12 12:21 EST, Vivian Kong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Liu CLA 2011-12-09 17:46:00 EST
LR parser does not parse the code properly when a class definition contains template argument that involves a pointer to a class with namespace, for example, 

std::vector<I::C::DM::p*>& pl
Comment 1 John Liu CLA 2011-12-09 23:05:09 EST
Created attachment 208212 [details]
patch to cdt_7_0 part 1
Comment 2 John Liu CLA 2011-12-09 23:05:49 EST
Created attachment 208213 [details]
patch to cdt_7_0 part 2
Comment 3 John Liu CLA 2011-12-09 23:12:58 EST
The code patch fixes LR parsers by updating a grammar rule and regenerating the parsers code. Although the update in the grammar is small, but the generated code change is quite big.

I also add a junit test case for this fix.
Comment 4 Vivian Kong CLA 2011-12-12 12:21:32 EST
Created attachment 208272 [details]
New patch for cdt_7_0
Comment 5 CDT Genie CLA 2011-12-12 13:23:03 EST
*** cdt git genie on behalf of John Liu ***

    Bug 366273 - LR Parser does not parse the code properly with the syntax
    of template argument having a pointer to a class with namespace -
    Part 1 - for John Liu

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=61d5be6ef6f0f8370f0ce31e0452f60aac4f0554