[Issue 22679] New: "Error: identifier expected following `package'" when module has 'debug' in it's name

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 16 17:05:24 UTC 2022


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

          Issue ID: 22679
           Summary: "Error: identifier expected following `package'" when
                    module has 'debug' in it's name
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: dlang at jarmuszz.anonaddy.com

Created attachment 1839
  --> https://issues.dlang.org/attachment.cgi?id=1839&action=edit
File which fails to compile

Hello,
Having 'debug' in the module name results in dmd (2.098.1) and ldc2 (1.28.0,
llvm-13) throwing out "Error: identifier expected following `package`" at a
line in which the module declaration is present.

I tested this on the following hardware:
Devuan linux bookworm/sid x86_64
i5-3320M (ivybridge, Litte Edian)

I attach an example file which throws said error.

Sincerely,
Mariusz Jakoniuk (jarmuszz)

--


More information about the Digitalmars-d-bugs mailing list