Skip to content

goto-instrument: const quantifier #882

Closed
@stahlbauer

Description

@stahlbauer

@tautschnig goto-instrument falsely emits const quantifiers for some typedef:
typedef const unsigned int uint32_t; instead of typedef unsigned int uint32_t;.

The problem might be caused by using the following operator (and none of the .set(ID_C_constant, true); causes it): c_qualifierst &operator+=(const c_qualifierst &b) in c_qualifiers.h

Test case for reproducing the problem: typedef-const.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions