[3.4] Incomplete types and template definitions
Florian Weimer
fw@deneb.enyo.de
Thu Sep 18 15:59:00 GMT 2003
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
> Florian Weimer <fw@deneb.enyo.de> writes:
>
> | Compiler behavior in this area changed, and this should be documented.
>
> that is a logical consequence of proper two-name lookup. E.g., the
> fact that the following is invalid is expected
>
> struct Foo;
>
> struct Bar {
> void bar(Foo* baz) { baz->foo(); }
> };
>
> struct Foo { vois foo() { } };
>
> Since we already have wording to that effect, I'm not sure this one is
> needed.
Your example doesn't compile with GCC 3.3, either (after the typo
fix), but mine does. I can't find documentation about the effects of
proper two-name lookup in <http://gcc.gnu.org/gcc-3.4/changes.html>.
More information about the Gcc
mailing list