User forums > Using Code::Blocks

CC (probably) falls into loop.

(1/1)

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)

--- Code: ---#include <type_traits>

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

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

--- Code: ---#include <type_traits>

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

--- End code ---
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:

--- Quote from: littlegene on November 08, 2012, 08:41:21 pm ---Is it already fixed ?

--- End quote ---
Yes, in trunk now.

Navigation

[0] Message Index

Go to full version