This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13967] [3.3?/3.4/3.5 regression] template template argument identifier lookup fails scoping rules
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 01:02:23 -0000
- Subject: [Bug c++/13967] [3.3?/3.4/3.5 regression] template template argument identifier lookup fails scoping rules
- References: <20040201233401.13967.gianni@mariani.ws>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2004-02-02 01:02 -------
Subject: Re: template template argument identifier lookup fails scoping rules
"gianni at mariani dot ws" <gcc-bugzilla@gcc.gnu.org> writes:
| I lied :
| > ... compiles fine on MSVC++ 7.1 and Comeau.
|
| The truth is:
| It compiles fine on Comeau it triggers an internal compiler error on MSVC++v7.1.
|
| (when I was testing 13808 I had a (mistaken) memory of it compiling fine).
|
| Nonetheless - it's still a boog.
Where? in como or in GCC? Member functions defined in a class
definition get rewritten as if they were defined outside of the class.
And it is clear that when you rewrite the function outside of the
class definition (which is what GCC does), then you find X::C, not the
template parameter.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13967