Re: C++ PATCH for c++/79228, complex literal suffixes

2017-12-05 Thread Jason Merrill
OK, thanks. On Tue, Dec 5, 2017 at 7:33 AM, Jakub Jelinek wrote: > On Fri, Dec 01, 2017 at 03:16:23PM -0500, Jason Merrill wrote: >> commit e39b7d506d236ce7ef9f64d1bcf0b384bb2d8038 >> Author: Jason Merrill >> Date: Fri Dec 1 07:45:03 2017 -0500 >> >> PR c++/79228 - extensions hide

Re: C++ PATCH for c++/79228, complex literal suffixes

2017-12-05 Thread Jakub Jelinek
On Fri, Dec 01, 2017 at 03:16:23PM -0500, Jason Merrill wrote: > commit e39b7d506d236ce7ef9f64d1bcf0b384bb2d8038 > Author: Jason Merrill > Date: Fri Dec 1 07:45:03 2017 -0500 > > PR c++/79228 - extensions hide C++14 complex literal operators > > libcpp/ > * expr

C++ PATCH for c++/79228, complex literal suffixes

2017-12-01 Thread Jason Merrill
79228 points out that C++14 defines complex literal suffixes that conflict with the GNU suffixes. In this patch I take the approach that in C++14 and up, if has been included we assume that the user wants the C++14 suffixes and give a hard error if they aren't found; otherwise we assume that the