[Bug c++/13967] [3.3?/3.4/3.5 regression] template template argument identifier lookup fails scoping rules
gdr at integrable-solutions dot net
gcc-bugzilla@gcc.gnu.org
Mon Feb 2 01:02:00 GMT 2004
------- 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
More information about the Gcc-bugs
mailing list