This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3882: gcc 3.0 error referencing a variable in its initializer expression in template code
- From: jason at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org, sebor at roguewave dot com
- Date: 18 Mar 2002 23:37:18 -0000
- Subject: Re: c++/3882: gcc 3.0 error referencing a variable in its initializer expression in template code
- Reply-to: jason at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, jason at gcc dot gnu dot org, sebor at roguewave dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.0 error referencing a variable in its initializer expression in template code
State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Mon Mar 18 15:37:17 2002
State-Changed-Why:
Fixed for 3.1 by
2002-03-18 Eric Botcazou <ebotcazou@multimania.com>
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.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3882