1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Fixed Bug 86123 - [NPE] in CPPASTNode#getTranslationUnit()

This commit is contained in:
John Camelon 2005-02-22 16:16:25 +00:00
parent ecf1086df4
commit 9b3826ea71

View file

@ -3805,6 +3805,8 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
} else if (bitField != null) { } else if (bitField != null) {
IASTFieldDeclarator fl = createFieldDeclarator(); IASTFieldDeclarator fl = createFieldDeclarator();
fl.setBitFieldSize(bitField); fl.setBitFieldSize(bitField);
bitField.setParent( fl );
bitField.setPropertyInParent( IASTFieldDeclarator.FIELD_SIZE );
d = fl; d = fl;
} else { } else {
d = createDeclarator(); d = createDeclarator();