This is the mail archive of the gcc-bugs@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]

[Bug c++/13967] [3.3?/3.4/3.5 regression] template template argument identifier lookup fails scoping rules


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


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