After updating GCC to version 11.1.0 (from previously using GCC 9), angelscript fails to compile on the latest WIP because of as_symboltable.h:89
Is there any solution to this? Thanks in advance! Been using AS for the past few weeks and it's amazing
In file included from project/source/src/angelscript/source/as_module.h:43,
from project/source/src/angelscript/source/as_module.cpp:40:
project/source/src/angelscript/source/as_symboltable.h:89:56: error: invalid declarator before ‘)’ token
89 | asCSymbolTableIterator<T, T2>(asCSymbolTable<T>) *table;
| ^
In file included from project/source/src/angelscript/source/as_property.h:47,
from project/source/src/angelscript/source/as_objecttype.h:44,
from project/source/src/angelscript/source/as_scriptengine.h:48,
from project/source/src/angelscript/source/as_bytecode.cpp:48:
project/source/src/angelscript/source/as_symboltable.h:89:56: error: invalid declarator before ‘)’ token
89 | asCSymbolTableIterator<T, T2>(asCSymbolTable<T>) *table;
| ^
In file included from project/source/src/angelscript/source/as_property.h:47,
from project/source/src/angelscript/source/as_objecttype.h:44,
from project/source/src/angelscript/source/as_scriptengine.h:48,
from project/source/src/angelscript/source/as_callfunc.cpp:42:
project/source/src/angelscript/source/as_symboltable.h:89:56: error: invalid declarator before ‘)’ token
89 | asCSymbolTableIterator<T, T2>(asCSymbolTable<T>) *table;
| ^
project/source/src/angelscript/source/as_symboltable.h:487:1: error: no declaration matches ‘asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T>*)’
487 | asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T> *table) : m_table(table), m_idx(0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from project/source/src/angelscript/source/as_property.h:47,
from project/source/src/angelscript/source/as_objecttype.h:44,
from project/source/src/angelscript/source/as_scriptengine.h:48,
from project/source/src/angelscript/source/as_gc.cpp:42:
project/source/src/angelscript/source/as_symboltable.h:89:56: error: invalid declarator before ‘)’ token
89 | asCSymbolTableIterator<T, T2>(asCSymbolTable<T>) *table;
| ^
project/source/src/angelscript/source/as_symboltable.h:487:1: note: no functions named ‘asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T>*)’
project/source/src/angelscript/source/as_symboltable.h:487:1: error: no declaration matches ‘asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T>*)’
487 | asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T> *table) : m_table(table), m_idx(0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
project/source/src/angelscript/source/as_symboltable.h:77:7: note: ‘class asCSymbolTableIterator<T, T2>’ defined here
77 | class asCSymbolTableIterator
| ^~~~~~~~~~~~~~~~~~~~~~
project/source/src/angelscript/source/as_symboltable.h:487:1: note: no functions named ‘asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T>*)’
project/source/src/angelscript/source/as_symboltable.h:77:7: note: ‘class asCSymbolTableIterator<T, T2>’ defined here
77 | class asCSymbolTableIterator
| ^~~~~~~~~~~~~~~~~~~~~~
project/source/src/angelscript/source/as_symboltable.h:487:1: error: no declaration matches ‘asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T>*)’
487 | asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T> *table) : m_table(table), m_idx(0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
project/source/src/angelscript/source/as_symboltable.h:487:1: note: no functions named ‘asCSymbolTableIterator<T, T2>::asCSymbolTableIterator(asCSymbolTable<T>*)’
project/source/src/angelscript/source/as_symboltable.h:77:7: note: ‘class asCSymbolTableIterator<T, T2>’ defined here
77 | class asCSymbolTableIterator