GP-810 - Gnu Demangler - Fixed some failures when parsing function member pointers and array pointers/references; Fixed the parser not handling cast operators for function pointers

This commit is contained in:
dragonmacher 2021-04-19 18:37:05 -04:00
parent 6a8788acbc
commit 071eb82103
14 changed files with 898 additions and 159 deletions

View file

@ -2312,7 +2312,7 @@ public class SymbolManager implements SymbolTable, ManagerDB {
SourceType originalSource = namespaceSymbol.getSource();
// no duplicate check, since this class name will be set to that of the existing namespace
String tempName = name + System.nanoTime();
String tempName = "_temp_" + System.nanoTime();
SymbolDB classSymbol =
doCreateSpecialSymbol(Address.NO_ADDRESS, tempName, namespace.getParentNamespace(),
SymbolType.CLASS, -1, -1, null, originalSource, false /*check for duplicate */);
@ -2334,7 +2334,8 @@ public class SymbolManager implements SymbolTable, ManagerDB {
return classNamespace;
}
catch (DuplicateNameException | InvalidInputException | CircularDependencyException e) {
throw new AssertException("Unexpected exception creating class from namespace", e);
throw new AssertException("Unexpected exception creating class from namespace: " +
e.getMessage(), e);
}
finally {
lock.release();