www.digitalmars.com         C & C++   DMDScript  

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

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



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