This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3.4] Incomplete types and template definitions


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>.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]