Skip to content

Conflicting definition of types for curl project #629

Open
@IDKWNTCMF

Description

@IDKWNTCMF

Description
In C we can define a struct and a typedef with the same type name. But this won`t compile with C++ compilers.

To Reproduce
Steps to reproduce the behavior:

  1. Clone curl project
  2. Select curl target and generate tests for lib/cf-h1-proxy.c file
  3. Try to run generated tests

Expected behavior
Tests are supposed to be executed successfully.

Actual behavior
Compilation error.

Visual proofs (screenshots, logs)

error: definition of type 'h1_tunnel_state' conflicts with typedef of the same name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions