http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46870

           Summary: [C++0x] ICE: SIGSEGV (too deep recursion) on invalid
                    code
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz


----- testcase.C -----
template < int > struct S
{
  int foo ()
  {
    int b = b == b;
    S < b > ();
  }
};
----------------------

Compiler output:
$ gcc -std=c++0x testcase.C
Program received signal SIGSEGV, Segmentation fault.
0x000000000054d5c2 in value_dependent_expression_p (expression=0x7ffff7eea1e0)
at /mnt/svn/gcc-trunk/gcc/cp/pt.c:17987
17987   {
(gdb) bt
#0  0x000000000054d5c2 in value_dependent_expression_p
(expression=0x7ffff7eea1e0) at /mnt/svn/gcc-trunk/gcc/cp/pt.c:17987
#1  0x000000000054df96 in value_dependent_expression_p (expression=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cp/pt.c:18155
#2  0x000000000054db85 in value_dependent_expression_p (expression=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cp/pt.c:18074
#3  0x000000000054df96 in value_dependent_expression_p (expression=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cp/pt.c:18155
#4  0x000000000054db85 in value_dependent_expression_p (expression=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cp/pt.c:18074
#5  0x000000000054df96 in value_dependent_expression_p (expression=<value
optimized out>)
    at /mnt/svn/gcc-trunk/gcc/cp/pt.c:18155
.......

Reply via email to