Why is this code accepted?

Alexandre Oliva aoliva@redhat.com
Tue Apr 17 14:52:00 GMT 2001


On Apr 17, 2001, nbecker@fred.net wrote:

> If it doesn't work shouldn't gcc reject it?

Nope.  How would GCC tell that the static data member isn't going to
be defined in another translation unit?  That's why this rule doesn't
require a diagnostic from the compiler.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc mailing list