[Issue 21530] New: dtoh: Identifiers need to be sanitized wrt. reserved C++ keywords

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 9 16:30:32 UTC 2021


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

          Issue ID: 21530
           Summary: dtoh: Identifiers need to be sanitized wrt. reserved
                    C++ keywords
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: kinke at gmx.net

E.g., from frontend.h:

enum class PASS
{
    inline = 7 // needs to be sanitized to `inline_` or so
};

See https://en.cppreference.com/w/cpp/keyword.

--


More information about the Digitalmars-d-bugs mailing list