This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 <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 =========================

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]