[Bug c++/50436] Crash or hang on invalid template code

2016-05-26 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

Paolo Carlini  changed:

   What|Removed |Added

 CC||jamborm at gcc dot gnu.org

--- Comment #8 from Paolo Carlini  ---
*** Bug 59804 has been marked as a duplicate of this bug. ***

[Bug c++/50436] Crash or hang on invalid template code

2016-05-24 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

Paolo Carlini  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED
   Assignee|paolo.carlini at oracle dot com|unassigned at gcc dot 
gnu.org
   Target Milestone|--- |4.9.3

--- Comment #7 from Paolo Carlini  ---
In fact 4.9.3 is also fine.

[Bug c++/50436] Crash or hang on invalid template code

2016-05-24 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

--- Comment #6 from paolo at gcc dot gnu.org  ---
Author: paolo
Date: Tue May 24 21:32:29 2016
New Revision: 236671

URL: https://gcc.gnu.org/viewcvs?rev=236671=gcc=rev
Log:
2016-05-24  Paolo Carlini  

PR c++/50436
* g++.dg/template/crash123.C: New.
* g++.dg/template/crash124.C: Likewise.

Added:
trunk/gcc/testsuite/g++.dg/template/crash123.C
trunk/gcc/testsuite/g++.dg/template/crash124.C
Modified:
trunk/gcc/testsuite/ChangeLog

[Bug c++/50436] Crash or hang on invalid template code

2016-05-24 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

--- Comment #5 from Paolo Carlini  ---
Fixed in 5.1.0. I'm adding testcases and closing the bug.

[Bug c++/50436] Crash or hang on invalid template code

2013-11-06 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |paolo.carlini at oracle 
dot com

--- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com ---
Mine.


[Bug c++/50436] Crash or hang on invalid template code

2013-08-23 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

--- Comment #3 from Paolo Carlini paolo.carlini at oracle dot com ---
Currently both hang for me (after a rather useful error message). We can
certainly do better, of course. Interesting that the error messages produced by
clang and icc are completely different.


[Bug c++/50436] Crash or hang on invalid template code

2013-06-11 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-06-11
 Ever confirmed|0   |1
  Known to fail||4.8.1, 4.9.0

--- Comment #2 from Paolo Carlini paolo.carlini at oracle dot com ---
Confirmed.


[Bug c++/50436] Crash or hang on invalid template code

2011-09-16 Thread zackw at panix dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50436

--- Comment #1 from Zack Weinberg zackw at panix dot com 2011-09-16 19:13:13 
UTC ---
Here's a variant that hangs.

template bool struct VI {};
template typename T
struct IP
{
  static const bool r = IPT::r;
};
template typename T
struct V
{
  static const bool r = IPT::r;
  VIr vi;
};
struct X;
struct Y
{
  VX v;
}