[Bug c++/70352] [C++11] auto cannot be used in the type-id of a new-expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70352 Gayathri Gottumukkala changed: What|Removed |Added CC||gayathri.gottumukkala.27@gm ||ail.com --- Comment #3 from Gayathri Gottumukkala --- Syntax error, by removing braces and by releasing the memory of variable, the code is getting compiled.
[Bug c++/70352] [C++11] auto cannot be used in the type-id of a new-expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70352 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2016-07-31 Ever confirmed|0 |1 Known to fail||6.1.0 --- Comment #2 from Andrew Pinski --- Confirmed.
[Bug c++/70352] [C++11] auto cannot be used in the type-id of a new-expression
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70352 --- Comment #1 from Mitsuru Kariya --- Sorry, I forgot to paste an error message. = error message = prog.cc: In function 'int main()': prog.cc:3:19: error: invalid use of 'auto' auto p = new (auto)(42); ^~~~ = error message =