News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Error when compiling parser.cpp in svn 13708

Started by gd_on, August 16, 2025, 11:25:47 AM

Previous topic - Next topic

gd_on

Quote
C:\Users\Gerard\Documents\CodeBlocks_SVN\CodeBlocks_src\src\plugins\contrib\clangd_client\src\codecompletion\parser\parser.cpp|1662|error: operands to '?:' have different types 'size_t' {aka 'long long unsigned int'} and 'std::nullptr_t'|
This error is obtained with MingW64 / Msys2 g++ 15.2 on Windows. Adding an explicit cast to site_t before nullptr corrects the compilation error. But is it the correct solution ?
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

christo

In the patch I provided in https://sourceforge.net/p/codeblocks/code/13708 it was
size_t remainingToParse = pParser ? pParser->GetFilesRemainingToParse() : 0;

I think we should change nullptr back to 0 as above.

Miguel Gimenez