Commit 1ff095ee authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed possible crash when asking for the firstToken of an incomplete base class specifier.

parent a1d3c638
......@@ -108,7 +108,10 @@ unsigned BaseSpecifierAST::firstToken() const
return virtual_token;
if (access_specifier_token)
return access_specifier_token;
return name->firstToken();
if (name)
name->firstToken();
// assert?
return 0;
}
unsigned BaseSpecifierAST::lastToken() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment