www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21530] New: dtoh: Identifiers need to be sanitized wrt.

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 puremagic.com
          Reporter: kinke 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.

--
Jan 09