]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/init.cc
re PR c++/25364 (ICE with function pointer as template parameter)
authorMark Mitchell <mark@codesourcery.com>
Thu, 22 Dec 2005 20:08:39 +0000 (20:08 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 22 Dec 2005 20:08:39 +0000 (20:08 +0000)
commitd4f0f2055bf08b8743165ce5de1c44797b63f3eb
tree1c84532597b27832609a1b150445d869ef301367
parent57decb7e538606d06f06bc61f7841df2b3c88f03
re PR c++/25364 (ICE with function pointer as template parameter)

PR c++/25364
* typeck.c (build_unary_op): Pass DECLs not names to
build_offset_refs.
* init.c (build_offset_ref): Do not do name lookup.  Do not call
mark_used.
* call.c (build_call): Simplify and tidy.
* semantics.c (finish_qualified_id_expr): Call mark_used.
PR c++/25364
* g++.dg/template/call4.C: New test.

From-SVN: r108973
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/init.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/call4.C [new file with mode: 0644]