Bug #18223 2011-07-09 19:16

deadok

crash during compile file

Setting different compilers for project and build-target leads to crash during compile current file/build file.

...\src\sdk\compiler.cpp, on line 247

Compiler::Init() not called or generator invalid.

CB revision 7282.

To reproduce:

assuming that you have valid gcc compiler

1. set any other compiler as default (e.g. LLVM D) (you don't need to actually have it)

2. create new console c++ project

3. change debug target's compiler to gcc

4. close workspace, saving all changes.

5. launch C::B, open save project (make sure that no other project is loaded) open main.cpp, hit ctrl-shift-f9 or right-click->build file

The cause is, apparently:

During compilergcc::CompileFile project's compiler (aka m_CompilerId) got's initialized, but build target's (aka bt->GetCompilerID() ) is used

Category
Application::Crash
Group
Platform:Windows
Status
Closed
Close date
2011-08-13 09:15
Assigned to
mortenmacfly
deadok 2011-07-09 19:19

Uploaded patch #3183

mortenmacfly 2011-08-13 09:15

This bug is now fixed in HEAD.

Thank you for reporting it.