https://bugs.kde.org/show_bug.cgi?id=382771

--- Comment #11 from Daniel Santos <daniel.san...@pobox.com> ---
Well here you go, this is at least one parse fail for upstream.  This was w/o
gdb so I don't have a backtrace, but I'll guess that clang had a stack overflow
like gcc did prior to fixing it.  I'm still not certain that this was the
original failure, so I'll play more with it later.

kdevplatform.language: creating parse-job
"/home/daniel/proj/sys/gcc/git/gcc/testsuite/g++.dg/parse/stack1.C" new count
of active parse-jobs: 1
Segmentation fault

$ cat /home/daniel/proj/sys/gcc/git/gcc/testsuite/g++.dg/parse/stack1.C
/* PR c/2161: parser stack overflow.  */
/* { dg-do compile } */

#define ONE     else if (0) { }
#define TEN     ONE ONE ONE ONE ONE ONE ONE ONE ONE ONE
#define HUN     TEN TEN TEN TEN TEN TEN TEN TEN TEN TEN
#define THOU    HUN HUN HUN HUN HUN HUN HUN HUN HUN HUN

void foo()
{
  if (0) { }
  /* 11,000 else if's.  */
  THOU THOU THOU THOU THOU THOU THOU THOU THOU THOU THOU
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to