Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: p2rkw on November 04, 2012, 06:17:08 pm

Title: CC (probably) falls into loop.
Post by: p2rkw on November 04, 2012, 06:17:08 pm
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
};
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
After it hangs c::b consumes 100% of cpu and memory usage is raising up very quickly.
linux, rev. 8497
Title: Re: CC (probably) falls into loop.
Post by: littlegene on November 08, 2012, 08:41:21 pm
yes, stange bug. ;) Like a charm. I use 8479.
Is it already fixed ?
Title: Re: CC (probably) falls into loop.
Post by: MortenMacFly on November 09, 2012, 08:31:18 am
Is it already fixed ?
Yes, in trunk now.