mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Follow up for Bug 280909: Fixes a NPE.
This commit is contained in:
parent
e27412e7dd
commit
88e259d1f8
1 changed files with 1 additions and 1 deletions
|
@ -3252,7 +3252,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
|
|||
// Handle ambiguity between parameter pack and varargs.
|
||||
if (pd != null) {
|
||||
ICPPASTDeclarator dtor = pd.getDeclarator();
|
||||
if (!(dtor instanceof IASTAmbiguousDeclarator)) {
|
||||
if (dtor != null && !(dtor instanceof IASTAmbiguousDeclarator)) {
|
||||
if (dtor.declaresParameterPack() && dtor.getNestedDeclarator() == null
|
||||
&& dtor.getInitializer() == null && dtor.getName().getSimpleID().length == 0) {
|
||||
((IASTAmbiguityParent) fc).replace(pd, new CPPASTAmbiguousParameterDeclaration(pd));
|
||||
|
|
Loading…
Add table
Reference in a new issue