[Bug c++/51194] [C++0x] ICE about template aliasing

2011-11-19 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51194

--- Comment #5 from Dodji Seketeli dodji at gcc dot gnu.org 2011-11-19 
14:07:22 UTC ---
A candidate patch has been posted to
http://gcc.gnu.org/ml/gcc-patches/2011-11/msg01979.html


[Bug c++/51194] [C++0x] ICE about template aliasing

2011-11-19 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51194

--- Comment #6 from Dodji Seketeli dodji at gcc dot gnu.org 2011-11-20 
07:10:31 UTC ---
Author: dodji
Date: Sun Nov 20 07:10:24 2011
New Revision: 181523

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=181523
Log:
PR c++/51194 - ICE with invalid alias template

gcc/cp/

PR c++/51194
* pt.c (lookup_template_class_1): Go out early if the type of the
template is error_mark_node.

gcc/testsuite/

PR c++/51194
* g++.dg/cpp0x/alias-decl-15.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


[Bug c++/51194] [C++0x] ICE about template aliasing

2011-11-19 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51194

Dodji Seketeli dodji at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #7 from Dodji Seketeli dodji at gcc dot gnu.org 2011-11-20 
07:11:48 UTC ---
This should be fixed in trunk (4.7) now.


[Bug c++/51194] [C++0x] ICE about template aliasing

2011-11-18 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51194

Dodji Seketeli dodji at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011-11-18
 CC|dodji at gcc dot gnu.org|
 AssignedTo|unassigned at gcc dot   |dodji at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #3 from Dodji Seketeli dodji at gcc dot gnu.org 2011-11-18 
15:09:19 UTC ---
Confirmed.  Thanks.


[Bug c++/51194] [C++0x] ICE about template aliasing

2011-11-18 Thread dodji at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51194

--- Comment #4 from Dodji Seketeli dodji at gcc dot gnu.org 2011-11-18 
19:18:46 UTC ---
Here is a smaller reproducer:

templateclass U, class V
struct foo {};

templateclass U, class V=char
struct P {};

templatetemplateclass... U class... TT
struct bar {
templateclass... Args
using mem = PTTArgs..;
};

barfoo::memint, char b;