[Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread dopheide at fmf dot nl
--- 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

[Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread pinskia at physics dot uc dot edu
--- 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

Re: [Bug c++/20484] No proper linkage created for in class initialized static const

2005-03-15 Thread Andrew Pinski
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