News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

CC (probably) falls into loop.

Started by p2rkw, November 04, 2012, 06:17:08 PM

Previous topic - Next topic

p2rkw

Today I found strange bug. I dont even know how to name it.
How to reproduce: create new project, paste following code: (this isn't valid c++ code)

#include <type_traits>

template<class T>
struct A
{
typedef typename std::conditional<sizeof(T) > 12, const T& ,T>::type
};

and reparse project.
When I pasting and reparsing this code c::b simply crashes, but when I retyping it c::b always hangs after

#include <type_traits>

template<class T>
struct A
{
typedef typename std::conditional<sizeof(T) > 12, c

After it hangs c::b consumes 100% of cpu and memory usage is raising up very quickly.
linux, rev. 8497

littlegene

yes, stange bug. ;) Like a charm. I use 8479.
Is it already fixed ?

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]