Skip to content

Casting in class error #24

@jonathanberthias

Description

@jonathanberthias

There is a small bug when casting is done with a class member. As an example:

class Simple 
{
    int p;
  public:
    double get() {return p;}
};

yields

class Simple 
{
    int p;
  public:
    double get() {return static_cast<double>(this->p)p;}
};

An additionnal p is added after the cast, making the resulting code uncompilable.

Other than that, it is a great project !

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions