c++/6945: A static constant that is initialize inline is not create if only a temperary is used
spamjunk
spamjunk@stny.rr.com
Fri Jun 7 14:26:00 GMT 2002
Not true. You can't do that when its initialized inline in the class, the
compiler will tell its that its defined twice.
----- Original Message -----
From: <lerdsuwa@gcc.gnu.org>
To: <gcc-bugs@gcc.gnu.org>; <gcc-prs@gcc.gnu.org>; <nobody@gcc.gnu.org>;
<spamjunk@stny.rr.com>
Sent: Friday, June 07, 2002 10:12 AM
Subject: Re: c++/6945: A static constant that is initialize inline is not
create if only a temperary is used
> 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&p
r=6945
>
More information about the Gcc-bugs
mailing list