[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[creduce-bugs] Bug in move-global-var

The attached file triggers a crash in the move-global-var transformation. The reason seems to be that the source-range for the variable declaration is invalid which in turn seems to be due to that int32_t is undeclared. I have tried to find a way to fix it but I don't know enough about the internals of creduce and clang.

Clang version: 3.5.0 subversion tag.
Creduce version: master #4749964
OS: Ubuntu 14.04

Johan Bengtsson
void transparent_crc ( unsigned long long val, char *vname, int flag );

int32_t g_347[9];

// this should reproduce the crash:
// clang_delta --transformation=move-global-var --counter=1 creduce_bug_124624