Typo in source code while compiling with WM_COMPILE_OPTION=Debug
What is the current bug behaviour?
While compiling in WM_COMPILE_OPTION=Debug mode, following error occured and compilation stops.
Error Output
epressions/exprResult/exprResultGlobals.C: In member function ‘const Foam::expressions::exprResult& Foam::expressions::exprResultGlobals::get(const Foam::word&, const wordUList&) const’: expressions/exprResult/exprResultGlobals.C:206:58: error: ‘const class Foam::HashTableFoam::expressions::exprResultGlobals::Table’ has no member named ‘sortToc’; did you mean ‘sortedToc’? << "Known global scopes: " << variables_.sortToc() << nl;
Environment information
- OpenFOAM version : v1906
- Operating system : ubuntu 19.10
- Compiler : gcc
Possible fix
Please kindly change line 206 of source code in '/src/OpenFOAM/expressions/exprResult/exprResultGlobals.C' as follows:
- << "Known global scopes: " << variables_.*sortedToc()*<< nl;