[Bug c++/59804] C++ front-end checking ends in an infinite loop on erroneous code
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Sep 27 15:23:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59804
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery,
| |ice-checking
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-09-27
CC| |manu at gcc dot gnu.org
Ever confirmed|0 |1
Known to fail| |4.9.0, 5.0
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
It is recursing here:
1396 #ifdef ENABLE_CHECKING
1397 if (USE_CANONICAL_TYPES)
1398 {
1399 bool result = structural_comptypes (t1, t2, strict);
so we get:
#0 comptypes (t1=0x7ffff6db4000, t2=0x7ffff6d59000, strict=<optimized out>) at
/home/manuel/test1/pristine/gcc/cp/typeck.c:1401
#1 0x00000000006f5e1e in structural_comptypes (t1=0x7ffff6db42a0,
t2=0x7ffff6d592a0, strict=0) at
/home/manuel/test1/pristine/gcc/cp/typeck.c:1341
#2 0x00000000006f7c88 in comptypes (t1=0x7ffff6db42a0, t2=0x7ffff6d592a0,
strict=<optimized out>) at /home/manuel/test1/pristine/gcc/cp/typeck.c:1399
#3 0x00000000006f5e1e in structural_comptypes (t1=0x7ffff6db4540,
t2=0x7ffff6d59540, strict=0) at
/home/manuel/test1/pristine/gcc/cp/typeck.c:1341
#4 0x00000000006f7c88 in comptypes (t1=0x7ffff6db4540, t2=0x7ffff6d59540,
strict=<optimized out>) at /home/manuel/test1/pristine/gcc/cp/typeck.c:1399
#5 0x00000000006f5e1e in structural_comptypes (t1=0x7ffff6db47e0,
t2=0x7ffff6d597e0, strict=0) at
/home/manuel/test1/pristine/gcc/cp/typeck.c:1341
#6 0x00000000006f7c88 in comptypes (t1=0x7ffff6db47e0, t2=0x7ffff6d597e0,
strict=<optimized out>) at /home/manuel/test1/pristine/gcc/cp/typeck.c:1399
#7 0x00000000006f5e1e in structural_comptypes (t1=0x7ffff6db4a80,
t2=0x7ffff6d59a80, strict=0) at
/home/manuel/test1/pristine/gcc/cp/typeck.c:1341
#8 0x00000000006f7c88 in comptypes (t1=0x7ffff6db4a80, t2=0x7ffff6d59a80,
strict=<optimized out>) at /home/manuel/test1/pristine/gcc/cp/typeck.c:1399
#9 0x00000000006f5e1e in structural_comptypes (t1=0x7ffff6db4d20,
t2=0x7ffff6d59d20, strict=0) at
/home/manuel/test1/pristine/gcc/cp/typeck.c:1341
More information about the Gcc-bugs
mailing list