[Bug c++/43327] ICE in unifiy.c

2010-03-26 Thread dodji at gcc dot gnu dot org


--- Comment #4 from dodji at gcc dot gnu dot org  2010-03-26 09:21 ---
Subject: Bug 43327

Author: dodji
Date: Fri Mar 26 09:20:58 2010
New Revision: 157745

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157745
Log:
Fix for PR c++/43327

gcc/cp/ChangeLog:
PR c++/43327
* pt.c (add_to_template_args): Support NULL ARGS;
(most_specialized_class): call coerce_template_parms on
template arguments passed to get_class_bindings. Use
add_to_template_args.
(unify): Handle VAR_DECLs.

gcc/testsuite/ChangeLog:
PR c++/43327
* g++.dg/other/crash-10.C: New test.
* g++.dg/other/crash-11.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/other/crash-10.C
trunk/gcc/testsuite/g++.dg/other/crash-11.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/43327] ICE in unifiy.c

2010-03-17 Thread dodji at gcc dot gnu dot org


--- Comment #3 from dodji at gcc dot gnu dot org  2010-03-17 14:55 ---
A patch was proposed at http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00662.html


-- 


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



[Bug c++/43327] ICE in unifiy.c

2010-03-16 Thread dodji at gcc dot gnu dot org


-- 

dodji at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |dodji at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2010-03-13 00:59:53 |2010-03-16 09:14:54
   date||


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



[Bug c++/43327] ICE in unifiy.c

2010-03-12 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2010-03-13 00:59 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
   Keywords||ice-on-valid-code
  Known to fail||4.2.3 4.3.3 4.5.0
   Last reconfirmed|-00-00 00:00:00 |2010-03-13 00:59:53
   date||


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



[Bug c++/43327] ICE in unifiy.c

2010-03-10 Thread roger dot ferrer at bsc dot es


--- Comment #1 from roger dot ferrer at bsc dot es  2010-03-11 07:56 ---
For what it's worth, replacing

 static const int m = 4;

with

 enum { m = 4 }; 

works fine.


-- 


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