Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 11.0.2, Qt Creator 13.0.2
-
None
-
-
9a8cba372 (14.0)
Description
when I type codes as following:
#include <stdlib.h> class A { public: A() { printf("A()\n"); } }; int main(int argc, char* argv[]) { A* a = malloc(sizeof(A)); a = new(a) A(); return 0; }
there is an syntax warning shows:
after I delete the `()` after A in line 17, the warning disappears.
the reason looks like builtin-parser cannot analysis the empty param list of constructor function in placement new operator.
Attachments
Issue Links
- mentioned in
-
Page Loading...