digitalmars.D.bugs - [Issue 6589] New: is(int*==int*); and template X(T : int*=int*) should compile
- d-bugmail puremagic.com (27/27) Sep 01 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6589
http://d.puremagic.com/issues/show_bug.cgi?id=6589 Summary: is(int*==int*); and template X(T : int*=int*) should compile Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: timon.gehr gmx.ch --- Comment #0 from timon.gehr gmx.ch 2011-09-01 10:04:51 PDT --- is(int*==int*) / template X(T : int*=int*) do not compile because they are tokenized as is ( int *= = int *) template X ( T : int *= int * ) The parser could explicitly check for the *= = token combination / the *= token. What this would add is that the compiler can actually parse all programs generated from the D grammar. It would solve a similar language problem C++98 had with the X<Y<int>>. I think this should not add more than 10 LOC to the parser in total. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 01 2011