| Summary: | static analyser must show warning for typedefed constructor call with wrong parameters. | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vasiliy Dybala <dibalavs> |
| Component: | cdt-codan | Assignee: | Sergey Prigogin <eclipse.sprigogin> |
| Status: | RESOLVED FIXED | QA Contact: | Elena Laskavaia <elaskavaia.cdt> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | cdtdoug, eclipse.sprigogin, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | 8.2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
This has since been fixed. I do get a codan error for this code with Kepler. (The wording of the error can be improved - I filed bug 336438 for this a while ago.) I think this bug report can be closed. Fixed a while ago. |
Build Identifier: 201009242334 1. write code: class B { public: B(int, char, int){} }; class D : public B { typedef B Super; public: D() : Super() {} }; Codan does not show any warnings/errors in initialization list "Super()" but this code wouldn't compile because constructor B() must have 3 parameters. Reproducible: Always Steps to Reproduce: 1. launch eclipse 2. turn on all codan checkers 3. write code.