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:
parent
ecf1086df4
commit
9b3826ea71
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue