Re: [C++ PATCH] Allow void type as a literal type in C++14

2014-12-01 Thread Jason Merrill
OK. Jason

Re: [C++ PATCH] Allow void type as a literal type in C++14

2014-11-28 Thread Marek Polacek
Ping. On Fri, Nov 21, 2014 at 06:55:51PM +0100, Marek Polacek wrote: > I noticed that C++14 [basic.types] says that "a type is a literal type > if it is: void, [...]". Yet our literal_type_p doesn't consider void > type as a literal type. The following is an attempt to fix that along > with a te

[C++ PATCH] Allow void type as a literal type in C++14

2014-11-21 Thread Marek Polacek
I noticed that C++14 [basic.types] says that "a type is a literal type if it is: void, [...]". Yet our literal_type_p doesn't consider void type as a literal type. The following is an attempt to fix that along with a testcase. It seems that void was only added in C++14, so check for cxx14 as wel