Skip to content

Is --float broken? #172

@pmatos

Description

@pmatos

If I generate a program with --float using cmith 2.4.0, and then compile with gcc 14.1.1, I see that we are passing float * to transparent_crc_bytes as first argumnet which should have type char *. GCC definitely does not like that.

Attaching csmith generated file.
test1.c.gz

test1.c:1617:28: error: passing argument 1 of ‘transparent_crc_bytes’ from incompatible pointer type [-Wincompatible-pointer-types]
 1617 |     transparent_crc_bytes (&g_2320, sizeof(g_2320), "g_2320", print_hash_value);
      |                            ^~~~~~~
      |                            |
      |                            const float *

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions