re PR c++/3882 (gcc 3.0 error referencing a variable in its initializer expression...
authorEric Botcazou <ebotcazou@multimania.com>
Mon, 18 Mar 2002 20:19:39 +0000 (20:19 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 18 Mar 2002 20:19:39 +0000 (15:19 -0500)
commitff77ac85500988bc8f54a1e36ea8ee843b63588b
tree0072ba95d96d9521a766c7decf6ca20dcf6aa0e0
parented30079302a7b50092afc26ce47809ab03c59483
re PR c++/3882 (gcc 3.0 error referencing a variable in its initializer expression in template code)

        PR c++/3882
        * pt.c (tsubst_decl): Move __PRETTY_FUNCTION__ handling...
        (tsubst_expr) [DECL_STMT]: ...here. And substitute the initializer
        only after recording the declaration.

From-SVN: r50999
gcc/cp/ChangeLog
gcc/testsuite/g++.dg/template/decl1.C [new file with mode: 0644]