--- Comment #5 from bangerth at math dot tamu dot edu 2007-02-11 06:22
---
Subject: Re: ignores explicit qualification
> --- Comment #4 from igodard at pacbell dot net 2007-02-11 06:04 ---
> Thank you. Is that obscure or what :-)
No, I think that was pretty straightforward!
--- Comment #4 from igodard at pacbell dot net 2007-02-11 06:04 ---
Thank you. Is that obscure or what :-)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30624
--- Comment #3 from bangerth at dealii dot org 2007-02-11 04:16 ---
(In reply to comment #2)
> I thought (according to the ARM) that all functions of a template class were
> implicitly function templates.
No, you confuse class member templates with class template members :-)
> Ordinar
--- Comment #2 from igodard at pacbell dot net 2007-01-28 20:03 ---
I thought (according to the ARM) that all functions of a template class were
implicitly function templates. Ordinarily the correct instantiation is
determined by the object, but when both are inherited then it needs
qual
--- Comment #1 from pluto at agmk dot net 2007-01-28 19:41 ---
(In reply to comment #0)
> template struct foo { T*bar(); };
> struct foo1 : public foo, public foo { };
> int main() { foo1 f; f.bar(); }
this is an invalid code.
1). f.bar isn't a function template, so f.bar is wrong.