re PR c++/10939 (ICE with templated code)
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Jun 2003 05:52:43 +0000 (05:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Jun 2003 05:52:43 +0000 (05:52 +0000)
commit00cf3e31fd7934e7876c096e85b39e38c05275fc
tree7b1a1427ec2e377d2ea72a73a148655cd4165f8a
parente2b9853b291bb738919adb4e31990135a6e677e1
re PR c++/10939 (ICE with templated code)

PR c++/10939
* pt.c (tsubst_decl): Do not try to substitute into non-dependent
functions.
(value_dependent_expression_p): Correct logic for FUNCTION_DECLs.

PR c++/10939
* g++.dg/template/func1.C: New test.

From-SVN: r68244
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/func1.C [new file with mode: 0644]