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

Bug 366273

Summary: LR Parser does not parse the code properly with the syntax of template argument having a pointer to a class with namespace
Product: [Tools] CDT Reporter: John Liu <jwsliu>
Component: cdt-parserAssignee: Project Inbox <cdt-parser-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch to cdt_7_0 part 1
none
patch to cdt_7_0 part 2
none
New patch for cdt_7_0 none

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