www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22047] New: Inconsistent grammar parsing function types in

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

          Issue ID: 22047
           Summary: Inconsistent grammar parsing function types in
                    parameters vs. other contexts
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dlang-bugzilla thecybershadow.net

extern(C) pure nothrow  safe  nogc void function() p; // OK
alias extern(C) pure nothrow  safe  nogc void function() a; // OK
alias b = extern(C) pure nothrow  safe  nogc void function() p; // OK
void fun(extern(C) pure nothrow  safe  nogc void function() p); // Error

--
Jun 19