[Issue 2391] New: Character array literals are not recognized as string literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 4 01:21:02 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2391

           Summary: Character array literals are not recognized as string
                    literals
           Product: D
           Version: 2.019
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


pragma(msg, ['c']);

test.d(7): pragma msg string expected for message, not '['c']'

Also, __traits:
----
struct S
{
    static int x;
}

void main()
{
    S s;
    __traits(getMember, s, ['x']) = 1;
}
----
test.d(15): Error: string expected as second argument of __traits getMember
instead of ['x']


-- 



More information about the Digitalmars-d-bugs mailing list