[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#249691: gcc-3.4: false compiler error (templated base, templated child, private member)




>   This is an intended consequence of the new 3.4 C++ parser. From
>   http://gcc.gnu.org/gcc-3.4/changes.html
>
>      "In a template definition, unqualified names will no longer find
>       members of a dependent base"
>
>   You need to refer to "this->f" rather than the unqualified "f".

Okay, thanks.  I'll take your word for it that this is correct.  Is
there something in the spec that you could perhaps point me to that
shows that this to be the correct behavior?  If you can't point to it
quickly, don't waste time on it; I'll look for it myself.  It's just
that I'm a "language lawyer," and it's been a really long time since I
was surprised by a C++ compiler's correct response to any C++
code. :-)

Thanks for the prompt response.  If this is definitely not a bug in
g++, then please feel free to close this bug.  If I find something in
the spec that confirms that this is not a bug, I'll close it myself.

-- 
Jay Berkenbilt <ejb@ql.org>
http://www.ql.org/q/




Reply to: