[Issue 22047] New: Inconsistent grammar parsing function types in parameters vs. other contexts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 20 00:09:38 UTC 2021


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 at puremagic.com
          Reporter: dlang-bugzilla at 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

--


More information about the Digitalmars-d-bugs mailing list