This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70352] [C++11] auto cannot be used in the type-id of a new-expression
- From: "kariya_mitsuru at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Mar 2016 10:24:34 +0000
- Subject: [Bug c++/70352] [C++11] auto cannot be used in the type-id of a new-expression
- Auto-submitted: auto-generated
- References: <bug-70352-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70352
--- Comment #1 from Mitsuru Kariya <kariya_mitsuru at hotmail dot com> ---
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 =========================