Author Topic: CC (probably) falls into loop.  (Read 5520 times)

Offline p2rkw

  • Almost regular
  • **
  • Posts: 142
CC (probably) falls into loop.
« 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

Offline littlegene

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: CC (probably) falls into loop.
« Reply #1 on: November 08, 2012, 08:41:21 pm »
yes, stange bug. ;) Like a charm. I use 8479.
Is it already fixed ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: CC (probably) falls into loop.
« Reply #2 on: November 09, 2012, 08:31:18 am »
Is it already fixed ?
Yes, in trunk now.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ