[Issue 6589] New: is(int*==int*); and template X(T : int*=int*) should compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 1 10:04:57 PDT 2011


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 at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at 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: -------


More information about the Digitalmars-d-bugs mailing list