www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14460] New: ddoc - bracket inside string is being interpreted

https://issues.dlang.org/show_bug.cgi?id=14460

          Issue ID: 14460
           Summary: ddoc - bracket inside string is being interpreted as
           Product: D
           Version: 2.040
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: sudo pt-get.com

(possible duplicate of issue 2420)

ddoc is not happy when there is an unmatched bracket, even if the offending
bracket is inside a string literal -


auto uniform(string boundaries = "[)", T1, T2)
(T1 a, T2 b)  if (!is(CommonType!(T1, T2) == void))


(from std/random.d:1228)

which produces the following output -

std/random.d(1228): Warning: Ddoc: parameter count mismatch
std/random.d(1228): Warning: Ddoc: Stray ')'. This may cause incorrect Ddoc
output. Use $(RPAREN) instead for unpaired right parentheses.

dmd built at revision 5bad2acc86f1bf09d0b5c06bf653b25de0fe38ea

--
Apr 17 2015