www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6589] New: is(int*==int*); and template X(T : int*=int*) should compile


           Summary: is(int*==int*); and template X(T : int*=int*) should
           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 *=
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