#include <cstdio>
class A
{};
class B
{
        static A *A;
};
A *B::A=NULL;

gcc 3.4 kompiluje bez problemów, gcc 3.3 wywala:
test.cc:6: error: declaration of `A*B::A'
test.cc:3: error: changes meaning of `A' from `class A'

Który działa dobrze?

wolf
-- 
  Bartek   .  - Daj mi spokój.
  Taudul   :  
          .:....................................................................
w o l f @ p l d - l i n u x . o r g            .:. http://wolf.valkyrie.one.pl/

Attachment: pgp00000.pgp
Description: PGP signature

Odpowiedź listem elektroniczym