[Github-comments] [geany/geany-plugins] Syntax Error: AST broken, binary operator '>' doesn't have two operands (#834)

Pavel Roskin notifications at xxxxx
Thu Mar 14 00:42:37 UTC 2019


Following code makes cppcheck (the current revision 703e0a01534b14e6d8ebbefe59ea6b9ad95f29e2 from the master branch) report an incorrect error.
```
template <typename T>
using foo = enable_if_t<is_same<T, int>() && sizeof(int) == 4, int>;

template <typename T, typename U = foo<T>>
struct bar {};

template <typename T>
using baz = bar<T>;
```

That's the message I get:
```
$ cppcheck --language=c++ --std=c++14 testcase.h 
Checking testcase.h ...
[testcase.h:8]: (error) Syntax Error: AST broken, binary operator '>' doesn't have two operands.
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/834
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190313/a494c864/attachment.html>


More information about the Github-comments mailing list