[Bug c++/31226] static const volatile variables don't get linked correctly

2007-03-16 Thread bangerth at dealii dot org
--- Comment #2 from bangerth at dealii dot org 2007-03-16 18:18 --- (In reply to comment #1) > You forgot to declare it, you only defined it. In fact the other way around: you declared (and initialized) the variable but you forgot to give a definition (which asks the compiler to actuall

[Bug c++/31226] static const volatile variables don't get linked correctly

2007-03-16 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2007-03-16 18:01 --- You forgot to declare it, you only defined it. Add: bool const volatile A::doit; to your code and it will work. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added