c++/189: parse error in qualified member name lookup
nathan@gcc.gnu.org
nathan@gcc.gnu.org
Tue Dec 25 06:50:00 GMT 2001
Synopsis: parse error in qualified member name lookup
State-Changed-From-To: analyzed->feedback
State-Changed-By: nathan
State-Changed-When: Mon Dec 24 13:22:03 2001
State-Changed-Why:
I don't think the code is well formed.
[3.4.5]/1 is the paragraph of interest, I don't see how
[3.4.3.1] applies. this is an id-expression (which
might be a qualified-id or an unqualified-id)
We need to lookup 'A' in the class of 'B<int>'. 'A' is
not a member of 'A<int>', so lookup does not find anything.
We then lookup 'A' in the context of the entire expression.
Again, this does not find anything. We therefore interpret
the '<' as a less than operator.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=189
More information about the Gcc-bugs
mailing list