https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102185

            Bug ID: 102185
           Summary: d: STRING_CSTs converted back into StringExp include
                    null pointer in length
           Product: gcc
           Version: 11.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ibuclaw at gdcproject dot org
  Target Milestone: ---

---
version (D_HardFloat)
{
    // prints 5LU instead of 4LU
    pragma(msg, __traits(getTargetInfo, "floatAbi").length);

    // static assert  ("hard\x00" == "hard") is false
    static assert(__traits(getTargetInfo, "floatAbi") == "hard");
}

Reply via email to