This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why is this code accepted?
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