www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22679] New: "Error: identifier expected following `package'"


          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 puremagic.com
          Reporter: dlang jarmuszz.anonaddy.com

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

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.

Mariusz Jakoniuk (jarmuszz)

Jan 16 2022