www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18834] New: Use ConditionalExpression instead of


          Issue ID: 18834
           Summary: Use ConditionalExpression instead of AssignExpression
                    in TemplateArgument
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: alphaglosined gmail.com

Current grammar suggests that assignments are valid as part of template



This is because of the usage of AssignExpression inside of TemplateArgument.

AssignExpression refers to ConditionalExpression for both sides. We should
consider and probably use it instead.

May 06 2018