[Bug c++/70352] [C++11] auto cannot be used in the type-id of a new-expression

2023-09-06 Thread gayathri.gottumukkala.27 at gmail dot com via Gcc-bugs
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

2016-07-30 Thread pinskia at gcc dot gnu.org
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

2016-03-22 Thread kariya_mitsuru at hotmail dot com
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 =