[Issue 9232] Parsing error on some templated methods calls

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 22:51:00 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9232


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
           Severity|enhancement                 |normal


--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2012-12-28 22:50:58 PST ---
(In reply to comment #2)
> > In current, "(foo).bar" matches UnaryExpression "(Type) . identifier".
> > http://dlang.org/expression#UnaryExpression
> 
> It should not since foo is not a type but an identifier.
> 
> (foo).bar!int should match "PrimaryExpression . TemplateInstance", where
> PrimaryExpression matches "( Identifier )".
> 
> So this is a compiler bug IMO, and should not be classified as an enhancement
> request.

OK. I was convinced that it is a grammar bug, rather than an enhancement.

https://github.com/D-Programming-Language/dmd/pull/1422
https://github.com/D-Programming-Language/d-programming-language.org/pull/223

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list