This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6945: A static constant that is initialize inline is not create if only a temperary is used
- From: lerdsuwa at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, spamjunk at stny dot rr dot com
- Date: 7 Jun 2002 14:12:17 -0000
- Subject: Re: c++/6945: A static constant that is initialize inline is not create if only a temperary is used
- Reply-to: lerdsuwa at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, spamjunk at stny dot rr dot com, gcc-gnats at gcc dot gnu dot org
Synopsis: A static constant that is initialize inline is not create if only a temperary is used
State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Jun 7 07:12:16 2002
State-Changed-Why:
Not a bug. You have to define 'i' by adding
const int T::i;
after the definition of class T.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6945