codinuum / cca

Code Continuity Analysis Framework
https://codinuum.github.io/gallery-cca/
Apache License 2.0
20 stars 5 forks source link

[C++] sizeof with complex types #30

Closed petr-bauch closed 2 years ago

petr-bauch commented 2 years ago

The types from complex.h seem to be parsed in other contexts, e.g.

bar<double _Complex>();
float _Imaginary ** c;

But the same types are refused by the parser when given to sizeof operator, e.g.

std::size_t double_size = sizeof(double _Complex);
codinuum commented 2 years ago

The latter context within sizeof is different from the former, although both contexts allow types and expressions to occur. We hope c1a2764 fix the problem.

petr-bauch commented 2 years ago

Works without problems. Thanks a lot.