[Bug c++/36897] [4.2/4.3/4.4 Regression] ICE with function pointer template parameter

2009-02-03 Thread bonzini at gnu dot org


--- Comment #5 from bonzini at gnu dot org  2009-02-03 11:11 ---
caused by r90059 (convert_nontype_argument rewrite).  Giovanni, do you have
time to see if the patch I made makes sense?


-- 

bonzini at gnu dot org changed:

   What|Removed |Added

 CC||giovannibajo at gcc dot gnu
   ||dot org, bonzini at gnu dot
   ||org


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



[Bug c++/36897] [4.2/4.3/4.4 Regression] ICE with function pointer template parameter

2009-02-03 Thread bonzini at gcc dot gnu dot org


--- Comment #6 from bonzini at gnu dot org  2009-02-03 15:56 ---
Subject: Bug 36897

Author: bonzini
Date: Tue Feb  3 15:56:05 2009
New Revision: 143896

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=143896
Log:
gcc/cp:
2009-02-03  Paolo Bonzini  bonz...@gnu.org

PR c++/36897
* pt.c (convert_nontype_argument_function): Expect expr to be an
ADDR_EXPR.

PR c++/37314
* typeck.c (merge_types): Call resolve_typename_type if only
one type is a typename.

gcc/testsuite:
2009-02-03  Paolo Bonzini  bonz...@gnu.org

PR c++/36897
* g++.dg/template/func2.C: New test.

PR c++/37314
* g++.dg/template/typename15.C: New.
* g++.dg/template/typename16.C: New.


Added:
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/template/func2.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/template/typename15.C
branches/gcc-4_3-branch/gcc/testsuite/g++.dg/template/typename16.C
Modified:
branches/gcc-4_3-branch/gcc/cp/ChangeLog
branches/gcc-4_3-branch/gcc/cp/pt.c
branches/gcc-4_3-branch/gcc/cp/typeck.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


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



[Bug c++/36897] [4.2/4.3/4.4 Regression] ICE with function pointer template parameter

2009-02-03 Thread bonzini at gnu dot org


--- Comment #4 from bonzini at gnu dot org  2009-02-03 10:38 ---
Created an attachment (id=17231)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17231action=view)
tentative patch


-- 


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



[Bug c++/36897] [4.2/4.3/4.4 Regression] ICE with function pointer template parameter

2008-08-22 Thread rguenth at gcc dot gnu dot org


--- Comment #3 from rguenth at gcc dot gnu dot org  2008-08-22 14:51 ---
For the curious, G++ 3.4.6 says

t.ii:4: error: `zeroptr' is not a valid template argument
t.ii:4: error: it must be the address of a function with external linkage


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

  Known to fail|4.1.1 4.3.0 4.1.2   |4.0.0 4.1.1 4.3.0 4.1.2
  Known to work|3.3 |3.4.6
   Priority|P3  |P2
   Target Milestone|4.3.2   |4.2.5


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



[Bug c++/36897] [4.2/4.3/4.4 Regression] ICE with function pointer template parameter

2008-08-16 Thread pinskia at gcc dot gnu dot org


--- Comment #2 from pinskia at gcc dot gnu dot org  2008-08-17 00:04 ---
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed|0   |1
  GCC build triplet|i686-pc-linux-gnu   |
   GCC host triplet|i686-pc-linux-gnu   |
 GCC target triplet|i686-pc-linux-gnu   |
  Known to fail|4.1.1 4.3.0 |4.1.1 4.3.0 4.1.2
  Known to work||3.3
   Last reconfirmed|-00-00 00:00:00 |2008-08-17 00:04:47
   date||
Summary|ICE with function pointer   |[4.2/4.3/4.4 Regression] ICE
   |template parameter  |with function pointer
   ||template parameter
   Target Milestone|--- |4.3.2


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