--- Additional Comments From pinskia at physics dot uc dot edu 2005-03-15
18:50 ---
Subject: Re: No proper linkage created for in class initialized static const
On Mar 15, 2005, at 1:46 PM, dopheide at fmf dot nl wrote:
> It stills /looks/ inconsistent though.
That is because there
On Mar 15, 2005, at 1:46 PM, dopheide at fmf dot nl wrote:
It stills /looks/ inconsistent though.
That is because there is an optimization going on here which is allowed
by the standard.
-- Pinski
--- Additional Comments From dopheide at fmf dot nl 2005-03-15 18:46
---
You are correct. I was wrong.
I thought, because of consistency reasons, that
1) both should link, or
2) both shouldn't link.
(And I choose 1) for the "bug"-report.)
As I now understand it, the "static int const A
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-15
16:12 ---
You need to declare space for the variable still like so:
int const Test::A;
This is invalid.
--
What|Removed |Added