mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
Fix for 193152, ArrayOutOfBoundsException in name resolution.
This commit is contained in:
parent
5adf724d8e
commit
1ec487930f
1 changed files with 8 additions and 2 deletions
|
@ -2824,8 +2824,14 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
protected IASTName createName(ITokenDuple duple) {
|
||||
if (duple == null)
|
||||
return createName();
|
||||
if (duple.getSegmentCount() != 1)
|
||||
return createQualifiedName(duple);
|
||||
if (duple.getSegmentCount() != 1) {
|
||||
// workaround for bug 193152,
|
||||
// looks like duple.getSeqmentCount() and duple.getSegments().length can be different.
|
||||
ICPPASTQualifiedName qname= createQualifiedName(duple);
|
||||
if (qname.getNames().length > 0) {
|
||||
return qname;
|
||||
}
|
||||
}
|
||||
if (duple.getTemplateIdArgLists() != null)
|
||||
return createTemplateID(duple);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue