[Bug 272] New: ICE with -fsanitize=address

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Mon Sep 25 13:10:19 UTC 2017


https://bugzilla.gdcproject.org/show_bug.cgi?id=272

            Bug ID: 272
           Summary: ICE with -fsanitize=address
           Product: GDC
           Version: 4.8.x
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: code at dawg.eu

cat > bug.d << CODE
extern(C) void my_memcmp(const(void) *s1, const(void) *s2);

void bug(const(char)* p)
{
    my_memcmp(p, "__FILE__".ptr);
}
CODE

gdc -c -oflexer.o -fsanitize=address ddmd/lexer.d
----
ddmd/lexer.d:1:0: internal compiler error: in tree_to_uhwi, at tree.h:4044
 extern(C) void my_memcmp(const(void) *s1, const(void) *s2);
----

The specific compiler version for that error output is gdc (gdcproject.org
20161225-v2.068.2_gcc6) 6.3.0, but it happens with 4.8.5 and 4.9.3 as well.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the D.gnu mailing list