www.digitalmars.com         C & C++   DMDScript  

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


            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 gdcproject.org
          Reporter: code 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);

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.
Sep 25 2017