Cevelop / Issues

The official issue tracker for Cevelop.
9 stars 1 forks source link

constificator: Falsely detects read access on member as modification #16

Closed fmorgner closed 7 years ago

fmorgner commented 7 years ago

Expected Behavior

Given the following code:

struct s {
    bool member { };
};

int main() {
    s inst { };

    if (inst.member) {
    }
}

Constificator should mark s::member and inst as candidates for constification.

Actual Behavior

No markers are placed.

Cevelop Version, Operating System and Compiler

Cevelop 1.6.0-201701201507, Arch Linux, GCC and Clang

fmorgner commented 7 years ago

Fixed on internal master